mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 15:41:01 +00:00
resource tree : display template icon is vm is a template
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
ad594c6b24
commit
47cba218a5
@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user