From 8c8604bae3c0ad8e87a8773ca60c5a1f87ca6ac3 Mon Sep 17 00:00:00 2001 From: Tim Marx Date: Tue, 6 Nov 2018 13:48:48 +0100 Subject: [PATCH] node zfs: added check for undefined & new case AVAIL Signed-off-by: Tim Marx --- www/manager6/Utils.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index a659b093..bbc6fe08 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -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 ' ' + value; + }, get_kvm_osinfo: function(value) {