ui: eslint: Miscellaneous eslint fixes
Function syntax, raw words, string templates, no prototype builtins Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
16b8c3ddab
commit
6121e027ec
@ -91,11 +91,6 @@ Ext.define('PVE.window.MPResize', {
|
|||||||
items: [me.formPanel],
|
items: [me.formPanel],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
|
||||||
if (!me.disk) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -92,9 +92,5 @@ Ext.define('PVE.window.HDResize', {
|
|||||||
|
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
|
||||||
if (!me.disk) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -24,7 +24,7 @@ Ext.define('PVE.qemu.OSDefaults', {
|
|||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
var addOS = function(settings) {
|
var addOS = function(settings) {
|
||||||
if (me.hasOwnProperty(settings.parent)) {
|
if (Object.prototype.hasOwnProperty.call(settings, 'parent')) {
|
||||||
var child = Ext.clone(me[settings.parent]);
|
var child = Ext.clone(me[settings.parent]);
|
||||||
me[settings.pveOS] = Ext.apply(child, settings);
|
me[settings.pveOS] = Ext.apply(child, settings);
|
||||||
} else {
|
} else {
|
||||||
|
@ -78,7 +78,7 @@ Ext.define('PVE.panel.StoragePruneInputPanel', {
|
|||||||
}
|
}
|
||||||
// always delete old 'maxfiles' on edit, we map it to keep-last on window load
|
// always delete old 'maxfiles' on edit, we map it to keep-last on window load
|
||||||
return {
|
return {
|
||||||
delete: ['prune-backups', 'maxfiles'],
|
'delete': ['prune-backups', 'maxfiles'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
let options = { 'prune-backups': retention };
|
let options = { 'prune-backups': retention };
|
||||||
|
@ -33,8 +33,7 @@ Ext.define('PVE.storage.ImageView', {
|
|||||||
text: gettext('Remove'),
|
text: gettext('Remove'),
|
||||||
disabled: true,
|
disabled: true,
|
||||||
handler: function(btn, event, rec) {
|
handler: function(btn, event, rec) {
|
||||||
var url = "/nodes/" + nodename + "/storage/" + storage +
|
let url = `/nodes/${nodename}/storage/${storage}/content/${rec.data.volid}`;
|
||||||
"/content" + '/' + rec.data.volid;
|
|
||||||
var vmid = rec.data.vmid;
|
var vmid = rec.data.vmid;
|
||||||
|
|
||||||
var store = PVE.data.ResourceStore;
|
var store = PVE.data.ResourceStore;
|
||||||
|
@ -38,7 +38,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
|
|||||||
return me.callParent([values]);
|
return me.callParent([values]);
|
||||||
},
|
},
|
||||||
|
|
||||||
setValues: function diff(values) {
|
setValues: function(values) {
|
||||||
values.writecache = values.nowritecache ? 0 : 1;
|
values.writecache = values.nowritecache ? 0 : 1;
|
||||||
this.callParent([values]);
|
this.callParent([values]);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user