ui: add 'keep configs' checkbox to datastore removal window
... since the API already accepts a boolean for that. Signed-off-by: Hannes Laimer <h.laimer@proxmox.com> [ DC: actually send the option to the api ] Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
13ef537025
commit
e9979a1ac6
@ -34,7 +34,10 @@ Ext.define('PBS.window.SafeDatastoreDestroy', {
|
||||
getParams: function() {
|
||||
let viewModel = this.getViewModel();
|
||||
|
||||
let params = { 'destroy-data': viewModel.get('destroyData') };
|
||||
let params = {
|
||||
'destroy-data': viewModel.get('destroyData'),
|
||||
'keep-job-configs': viewModel.get('keepJobConfigs'),
|
||||
};
|
||||
return `?${Ext.Object.toQueryString(params)}`;
|
||||
},
|
||||
additionalItems: [{
|
||||
@ -45,6 +48,14 @@ Ext.define('PBS.window.SafeDatastoreDestroy', {
|
||||
bind: {
|
||||
value: '{destroyData}',
|
||||
},
|
||||
}, {
|
||||
xtype: 'proxmoxcheckbox',
|
||||
name: 'keep-job-configs',
|
||||
boxLabel: gettext("Keep configured jobs and permissions"),
|
||||
defaultValue: false,
|
||||
bind: {
|
||||
value: '{keepJobConfigs}',
|
||||
},
|
||||
}, {
|
||||
xtype: 'component',
|
||||
reference: 'noteCmp',
|
||||
|
Loading…
Reference in New Issue
Block a user