mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 15:41:01 +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) {
|
||||
if (typeof value == 'undefined'){
|
||||
return "";
|
||||
}
|
||||
var iconCls = 'question-circle';
|
||||
switch (value) {
|
||||
case 'AVAIL':
|
||||
case 'ONLINE':
|
||||
iconCls = 'check-circle good';
|
||||
break;
|
||||
@ -141,6 +145,7 @@ Ext.define('PVE.Utils', { utilities: {
|
||||
}
|
||||
|
||||
return '<i class="fa fa-' + iconCls + '"></i> ' + value;
|
||||
|
||||
},
|
||||
|
||||
get_kvm_osinfo: function(value) {
|
||||
|
Loading…
Reference in New Issue
Block a user