mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-17 14:08:27 +00:00
TFA panel: code/style cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
65c39bc04a
commit
82a386530e
@ -105,24 +105,22 @@ Ext.define('Proxmox.panel.TfaView', {
|
|||||||
|
|
||||||
Ext.create('Proxmox.window.AddWebauthn', {
|
Ext.create('Proxmox.window.AddWebauthn', {
|
||||||
isCreate: true,
|
isCreate: true,
|
||||||
|
autoShow: true,
|
||||||
listeners: {
|
listeners: {
|
||||||
destroy: function() {
|
destroy: () => me.reload(),
|
||||||
me.reload();
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}).show();
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
addRecovery: async function() {
|
addRecovery: async function() {
|
||||||
let me = this;
|
let me = this;
|
||||||
|
|
||||||
Ext.create('Proxmox.window.AddTfaRecovery', {
|
Ext.create('Proxmox.window.AddTfaRecovery', {
|
||||||
|
autoShow: true,
|
||||||
listeners: {
|
listeners: {
|
||||||
destroy: function() {
|
destroy: () => me.reload(),
|
||||||
me.reload();
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}).show();
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
addYubico: function() {
|
addYubico: function() {
|
||||||
@ -130,12 +128,11 @@ Ext.define('Proxmox.panel.TfaView', {
|
|||||||
|
|
||||||
Ext.create('Proxmox.window.AddYubico', {
|
Ext.create('Proxmox.window.AddYubico', {
|
||||||
isCreate: true,
|
isCreate: true,
|
||||||
|
autoShow: true,
|
||||||
listeners: {
|
listeners: {
|
||||||
destroy: function() {
|
destroy: () => me.reload(),
|
||||||
me.reload();
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}).show();
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
editItem: function() {
|
editItem: function() {
|
||||||
@ -148,12 +145,11 @@ Ext.define('Proxmox.panel.TfaView', {
|
|||||||
|
|
||||||
Ext.create('Proxmox.window.TfaEdit', {
|
Ext.create('Proxmox.window.TfaEdit', {
|
||||||
'tfa-id': selection[0].data.fullid,
|
'tfa-id': selection[0].data.fullid,
|
||||||
|
autoShow: true,
|
||||||
listeners: {
|
listeners: {
|
||||||
destroy: function() {
|
destroy: () => me.reload(),
|
||||||
me.reload();
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}).show();
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
renderUser: fullid => fullid.split('/')[0],
|
renderUser: fullid => fullid.split('/')[0],
|
||||||
@ -172,8 +168,8 @@ Ext.define('Proxmox.panel.TfaView', {
|
|||||||
Ext.create('Proxmox.tfa.confirmRemove', {
|
Ext.create('Proxmox.tfa.confirmRemove', {
|
||||||
...record.data,
|
...record.data,
|
||||||
callback: password => me.removeItem(password, record),
|
callback: password => me.removeItem(password, record),
|
||||||
})
|
autoShow: true,
|
||||||
.show();
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
removeItem: async function(password, record) {
|
removeItem: async function(password, record) {
|
||||||
|
Loading…
Reference in New Issue
Block a user