From d0477f12ad76eabe1aa422e405362f0819cba760 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 1 Apr 2022 17:28:36 +0200 Subject: [PATCH] ui: render storage type: improve fallback We support external storage plugins, e.g., for proprietary technology, so a "unknown" value here may not actually mean that we missed anything, so just return the type value 1:1 as fallback, that gives the user a better idea about such a storage entry. Reported-by: Joshua Huber Signed-off-by: Thomas Lamprecht --- www/manager6/Utils.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index aafe359a..735806aa 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -997,11 +997,8 @@ Ext.define('PVE.Utils', { value = !record || record.get('monhost') ? 'cephfs' : 'pvecephfs'; } - var schema = PVE.Utils.storageSchema[value]; - if (schema) { - return schema.name; - } - return Proxmox.Utils.unknownText; + let schema = PVE.Utils.storageSchema[value]; + return schema?.name ?? value; }, format_ha: function(value) {