mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-03-01 04:58:28 +03:00
ui: datastore edit: make new stores use notification system by default
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com> Tested-by: Gabriel Goller <g.goller@proxmox.com> Reviewed-by: Gabriel Goller <g.goller@proxmox.com> Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ee4b6cf18b
commit
be9b09bb0d
@ -39,6 +39,9 @@ Ext.define('PBS.DataStoreEdit', {
|
||||
title: gettext('General'),
|
||||
xtype: 'inputpanel',
|
||||
onlineHelp: 'datastore_intro',
|
||||
cbind: {
|
||||
isCreate: '{isCreate}',
|
||||
},
|
||||
column1: [
|
||||
{
|
||||
xtype: 'pmxDisplayEditField',
|
||||
@ -90,6 +93,16 @@ Ext.define('PBS.DataStoreEdit', {
|
||||
fieldLabel: gettext('Comment'),
|
||||
},
|
||||
],
|
||||
|
||||
onGetValues: function(values) {
|
||||
let me = this;
|
||||
|
||||
if (me.isCreate) {
|
||||
// New datastores default to using the notification system
|
||||
values['notification-mode'] = 'notification-system';
|
||||
}
|
||||
return values;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: gettext('Prune Options'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user