mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-08 16:44:43 +00:00
ui: tape backup job: add selector for notification-mode
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
0098c9f6f2
commit
5e2ab2765c
@ -46,6 +46,15 @@ Ext.define('PBS.TapeManagement.BackupJobEdit', {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
viewModel: {
|
||||||
|
data: {
|
||||||
|
notificationMode: 'notification-system',
|
||||||
|
},
|
||||||
|
formulas: {
|
||||||
|
notificationSystemSelected: (get) => get('notificationMode') === 'notification-system',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
items: {
|
items: {
|
||||||
xtype: 'tabpanel',
|
xtype: 'tabpanel',
|
||||||
bodyPadding: 10,
|
bodyPadding: 10,
|
||||||
@ -109,6 +118,18 @@ Ext.define('PBS.TapeManagement.BackupJobEdit', {
|
|||||||
fieldLabel: gettext('Drive'),
|
fieldLabel: gettext('Drive'),
|
||||||
name: 'drive',
|
name: 'drive',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
xtype: 'proxmoxKVComboBox',
|
||||||
|
comboItems: [
|
||||||
|
['legacy-sendmail', gettext('Email (legacy)')],
|
||||||
|
['notification-system', gettext('Notification system')],
|
||||||
|
],
|
||||||
|
fieldLabel: gettext('Notification mode'),
|
||||||
|
name: 'notification-mode',
|
||||||
|
bind: {
|
||||||
|
value: '{notificationMode}',
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
xtype: 'pmxUserSelector',
|
xtype: 'pmxUserSelector',
|
||||||
name: 'notify-user',
|
name: 'notify-user',
|
||||||
@ -117,6 +138,9 @@ Ext.define('PBS.TapeManagement.BackupJobEdit', {
|
|||||||
allowBlank: true,
|
allowBlank: true,
|
||||||
value: null,
|
value: null,
|
||||||
renderer: Ext.String.htmlEncode,
|
renderer: Ext.String.htmlEncode,
|
||||||
|
bind: {
|
||||||
|
disabled: "{notificationSystemSelected}",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user