mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 12:29:49 +00:00
node zfs: added check for undefined & new case AVAIL
Signed-off-by: Tim Marx <t.marx@proxmox.com>
This commit is contained in:
parent
93bd0d75c3
commit
8c8604bae3
@ -123,8 +123,12 @@ Ext.define('PVE.Utils', { utilities: {
|
|||||||
},
|
},
|
||||||
|
|
||||||
render_zfs_health: function(value) {
|
render_zfs_health: function(value) {
|
||||||
|
if (typeof value == 'undefined'){
|
||||||
|
return "";
|
||||||
|
}
|
||||||
var iconCls = 'question-circle';
|
var iconCls = 'question-circle';
|
||||||
switch (value) {
|
switch (value) {
|
||||||
|
case 'AVAIL':
|
||||||
case 'ONLINE':
|
case 'ONLINE':
|
||||||
iconCls = 'check-circle good';
|
iconCls = 'check-circle good';
|
||||||
break;
|
break;
|
||||||
@ -141,6 +145,7 @@ Ext.define('PVE.Utils', { utilities: {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return '<i class="fa fa-' + iconCls + '"></i> ' + value;
|
return '<i class="fa fa-' + iconCls + '"></i> ' + value;
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
get_kvm_osinfo: function(value) {
|
get_kvm_osinfo: function(value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user