]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: render storage type: improve fallback
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 1 Apr 2022 15:28:36 +0000 (17:28 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 1 Apr 2022 15:28:38 +0000 (17:28 +0200)
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 <jhuber@blockbridge.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/Utils.js

index aafe359aee5e50c5b8d7d37af7fa8e7717423fcc..735806aa1b5c90429136e242ba77dfa67e00f094 100644 (file)
@@ -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) {