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', {
var defaults = PVE.tree.ResourceTree.typeDefaults[info.type];
if (defaults && defaults.iconCls) {
if (info.running) {
info.iconCls = defaults.iconCls + "-running";
} else {
info.iconCls = defaults.iconCls;
}
var running = info.running ? '-running' : '';
var template = info.template ? '-template' : '';
info.iconCls = defaults.iconCls + running + template;
}
},
......
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