... if no editor is registered for a storage plugin. Signed-off-by: Max R. Carrara <m.carr...@proxmox.com> --- www/manager6/dc/StorageView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/www/manager6/dc/StorageView.js b/www/manager6/dc/StorageView.js index f4515c94..881ecddc 100644 --- a/www/manager6/dc/StorageView.js +++ b/www/manager6/dc/StorageView.js @@ -54,7 +54,8 @@ Ext.define( let schema = PVE.Utils.storageSchema[type]; if (!schema || !schema.ipanel) { - throw 'no editor registered for storage type: ' + type; + Ext.Msg.alert(gettext('Error'), `No editor registered for storage type '${type}'`); + return; } Ext.create('PVE.storage.BaseEdit', { -- 2.47.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel