Commit 7152cde1 authored by Alexandre Derumier's avatar Alexandre Derumier Committed by Dietmar Maurer

resource tree : display template icon is vm is a template

Signed-off-by: 's avatarAlexandre Derumier <aderumier@odiso.com>
parent dce8e89f
...@@ -86,11 +86,9 @@ Ext.define('PVE.tree.ResourceTree', { ...@@ -86,11 +86,9 @@ Ext.define('PVE.tree.ResourceTree', {
var defaults = PVE.tree.ResourceTree.typeDefaults[info.type]; var defaults = PVE.tree.ResourceTree.typeDefaults[info.type];
if (defaults && defaults.iconCls) { if (defaults && defaults.iconCls) {
if (info.running) { var running = info.running ? '-running' : '';
info.iconCls = defaults.iconCls + "-running"; var template = info.template ? '-template' : '';
} else { info.iconCls = defaults.iconCls + running + template;
info.iconCls = defaults.iconCls;
}
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment