mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-06 04:12:05 +00:00
safe destroy: allow specifing additional items
to be used to add more checkboxes for PVE's guest destroy use case. Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
2b1f7bb066
commit
1488907695
@ -15,6 +15,8 @@ Ext.define('Proxmox.window.SafeDestroy', {
|
||||
defaultFocus: 'confirmField',
|
||||
showProgress: false,
|
||||
|
||||
additionalItems: [],
|
||||
|
||||
config: {
|
||||
item: {
|
||||
id: undefined,
|
||||
@ -96,7 +98,18 @@ Ext.define('Proxmox.window.SafeDestroy', {
|
||||
},
|
||||
},
|
||||
|
||||
items: [
|
||||
buttons: [
|
||||
{
|
||||
reference: 'removeButton',
|
||||
text: gettext('Remove'),
|
||||
disabled: true,
|
||||
},
|
||||
],
|
||||
|
||||
initComponent: function() {
|
||||
let me = this;
|
||||
|
||||
me.items = [
|
||||
{
|
||||
xtype: 'component',
|
||||
cls: [Ext.baseCSSPrefix + 'message-box-icon',
|
||||
@ -124,6 +137,7 @@ Ext.define('Proxmox.window.SafeDestroy', {
|
||||
hideTrigger: true,
|
||||
allowBlank: false,
|
||||
},
|
||||
].concat(me.additionalItems).concat([
|
||||
{
|
||||
xtype: 'container',
|
||||
reference: 'noteContainer',
|
||||
@ -143,19 +157,9 @@ Ext.define('Proxmox.window.SafeDestroy', {
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
]),
|
||||
},
|
||||
],
|
||||
buttons: [
|
||||
{
|
||||
reference: 'removeButton',
|
||||
text: gettext('Remove'),
|
||||
disabled: true,
|
||||
},
|
||||
],
|
||||
|
||||
initComponent: function() {
|
||||
let me = this;
|
||||
];
|
||||
|
||||
me.callParent();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user