diff --git a/www/manager6/lxc/MPResize.js b/www/manager6/lxc/MPResize.js index f73c5c3fa..881c037b0 100644 --- a/www/manager6/lxc/MPResize.js +++ b/www/manager6/lxc/MPResize.js @@ -91,11 +91,6 @@ Ext.define('PVE.window.MPResize', { items: [me.formPanel], }); - me.callParent(); - - if (!me.disk) { - return; - } }, }); diff --git a/www/manager6/qemu/HDResize.js b/www/manager6/qemu/HDResize.js index a18e242cb..f9c7290d1 100644 --- a/www/manager6/qemu/HDResize.js +++ b/www/manager6/qemu/HDResize.js @@ -92,9 +92,5 @@ Ext.define('PVE.window.HDResize', { me.callParent(); - - if (!me.disk) { - return; - } }, }); diff --git a/www/manager6/qemu/OSDefaults.js b/www/manager6/qemu/OSDefaults.js index 8e5856510..f464133e5 100644 --- a/www/manager6/qemu/OSDefaults.js +++ b/www/manager6/qemu/OSDefaults.js @@ -24,7 +24,7 @@ Ext.define('PVE.qemu.OSDefaults', { var me = this; var addOS = function(settings) { - if (me.hasOwnProperty(settings.parent)) { + if (Object.prototype.hasOwnProperty.call(settings, 'parent')) { var child = Ext.clone(me[settings.parent]); me[settings.pveOS] = Ext.apply(child, settings); } else { diff --git a/www/manager6/storage/Base.js b/www/manager6/storage/Base.js index 4336d634f..20ec34643 100644 --- a/www/manager6/storage/Base.js +++ b/www/manager6/storage/Base.js @@ -78,7 +78,7 @@ Ext.define('PVE.panel.StoragePruneInputPanel', { } // always delete old 'maxfiles' on edit, we map it to keep-last on window load return { - delete: ['prune-backups', 'maxfiles'], + 'delete': ['prune-backups', 'maxfiles'], }; } let options = { 'prune-backups': retention }; diff --git a/www/manager6/storage/ImageView.js b/www/manager6/storage/ImageView.js index dda4b8e62..69517b5ef 100644 --- a/www/manager6/storage/ImageView.js +++ b/www/manager6/storage/ImageView.js @@ -33,8 +33,7 @@ Ext.define('PVE.storage.ImageView', { text: gettext('Remove'), disabled: true, handler: function(btn, event, rec) { - var url = "/nodes/" + nodename + "/storage/" + storage + - "/content" + '/' + rec.data.volid; + let url = `/nodes/${nodename}/storage/${storage}/content/${rec.data.volid}`; var vmid = rec.data.vmid; var store = PVE.data.ResourceStore; diff --git a/www/manager6/storage/ZFSEdit.js b/www/manager6/storage/ZFSEdit.js index e348d1a15..0c5a3ceba 100644 --- a/www/manager6/storage/ZFSEdit.js +++ b/www/manager6/storage/ZFSEdit.js @@ -38,7 +38,7 @@ Ext.define('PVE.storage.ZFSInputPanel', { return me.callParent([values]); }, - setValues: function diff(values) { + setValues: function(values) { values.writecache = values.nowritecache ? 0 : 1; this.callParent([values]); },