]> git.proxmox.com Git - pve-manager.git/commitdiff
node zfs: added check for undefined & new case AVAIL
authorTim Marx <t.marx@proxmox.com>
Tue, 6 Nov 2018 12:48:48 +0000 (13:48 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Nov 2018 13:46:26 +0000 (14:46 +0100)
Signed-off-by: Tim Marx <t.marx@proxmox.com>
www/manager6/Utils.js

index a659b0935a7000e55feb2202d90b5e9123260e15..bbc6fe082dc4a49cd86d1db4e6acc2faae1098be 100644 (file)
@@ -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) {