mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 10:32:50 +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
|
// always use same iframe, to avoid running several noVnc clients
|
||||||
// at same time (to avoid performance problems)
|
// 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, {
|
Ext.apply(me, {
|
||||||
items: box,
|
items: box,
|
||||||
|
@ -43,7 +43,7 @@ Ext.define('PVE.dc.RoleView', {
|
|||||||
dataIndex: 'roleid'
|
dataIndex: 'roleid'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'privs',
|
itemid: 'privs',
|
||||||
header: gettext('Privileges'),
|
header: gettext('Privileges'),
|
||||||
sortable: false,
|
sortable: false,
|
||||||
renderer: render_privs,
|
renderer: render_privs,
|
||||||
@ -60,4 +60,4 @@ Ext.define('PVE.dc.RoleView', {
|
|||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -79,7 +79,10 @@ Ext.define('PVE.lxc.SnapshotTree', {
|
|||||||
success: function(response, options) {
|
success: function(response, options) {
|
||||||
var res = response.result.data;
|
var res = response.result.data;
|
||||||
if (res.hasFeature) {
|
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', {
|
var snapshotBtn = Ext.create('Ext.Button', {
|
||||||
id: 'snapshotBtn',
|
itemId: 'snapshotBtn',
|
||||||
text: gettext('Take Snapshot'),
|
text: gettext('Take Snapshot'),
|
||||||
disabled: true,
|
disabled: true,
|
||||||
handler: function() {
|
handler: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user