mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-03 23:46:58 +00:00
ext6migrate: avoid using id
since id should be unique for the whole dom, avoid using it Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
04a234a024
commit
bc53e0716d
@ -29,7 +29,7 @@ Ext.define('PVE.noVncConsole', {
|
||||
|
||||
// always use same iframe, to avoid running several noVnc clients
|
||||
// at same time (to avoid performance problems)
|
||||
var box = Ext.create('Ext.ux.IFrame', { id : "vncconsole" });
|
||||
var box = Ext.create('Ext.ux.IFrame', { itemid : "vncconsole" });
|
||||
|
||||
Ext.apply(me, {
|
||||
items: box,
|
||||
|
@ -43,7 +43,7 @@ Ext.define('PVE.dc.RoleView', {
|
||||
dataIndex: 'roleid'
|
||||
},
|
||||
{
|
||||
id: 'privs',
|
||||
itemid: 'privs',
|
||||
header: gettext('Privileges'),
|
||||
sortable: false,
|
||||
renderer: render_privs,
|
||||
@ -60,4 +60,4 @@ Ext.define('PVE.dc.RoleView', {
|
||||
|
||||
me.callParent();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -79,7 +79,10 @@ Ext.define('PVE.lxc.SnapshotTree', {
|
||||
success: function(response, options) {
|
||||
var res = response.result.data;
|
||||
if (res.hasFeature) {
|
||||
Ext.getCmp('snapshotBtn').enable();
|
||||
var snpBtns = Ext.ComponentQuery.query('#snapshotBtn');
|
||||
snpBtns.forEach(function(item){
|
||||
item.enable();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -208,7 +211,7 @@ Ext.define('PVE.lxc.SnapshotTree', {
|
||||
});
|
||||
|
||||
var snapshotBtn = Ext.create('Ext.Button', {
|
||||
id: 'snapshotBtn',
|
||||
itemId: 'snapshotBtn',
|
||||
text: gettext('Take Snapshot'),
|
||||
disabled: true,
|
||||
handler: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user