mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 20:51:06 +00:00
fix #1295: ui: allow one to configure new notification settings
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8432c6d351
commit
5a9848fac0
@ -91,6 +91,26 @@ Ext.define('PVE.dc.OptionView', {
|
|||||||
vtype: 'proxmoxMail',
|
vtype: 'proxmoxMail',
|
||||||
defaultValue: 'root@$hostname',
|
defaultValue: 'root@$hostname',
|
||||||
});
|
});
|
||||||
|
me.add_inputpanel_row('notify', gettext('Notify'), {
|
||||||
|
renderer: v => !v ? 'package-updates=auto' : PVE.Parser.printPropertyString(v),
|
||||||
|
labelWidth: 120,
|
||||||
|
url: "/api2/extjs/cluster/options",
|
||||||
|
//onlineHelp: 'ha_manager_shutdown_policy',
|
||||||
|
items: [{
|
||||||
|
xtype: 'proxmoxKVComboBox',
|
||||||
|
name: 'package-updates',
|
||||||
|
fieldLabel: gettext('Package Updates'),
|
||||||
|
deleteEmpty: false,
|
||||||
|
value: '__default__',
|
||||||
|
comboItems: [
|
||||||
|
['__default__', Proxmox.Utils.defaultText + ' (auto)'],
|
||||||
|
['auto', gettext('Automatically')],
|
||||||
|
['always', gettext('Always')],
|
||||||
|
['never', gettext('Never')],
|
||||||
|
],
|
||||||
|
defaultValue: '__default__',
|
||||||
|
}],
|
||||||
|
});
|
||||||
me.add_text_row('mac_prefix', gettext('MAC address prefix'), {
|
me.add_text_row('mac_prefix', gettext('MAC address prefix'), {
|
||||||
deleteEmpty: true,
|
deleteEmpty: true,
|
||||||
vtype: 'MacPrefix',
|
vtype: 'MacPrefix',
|
||||||
|
Loading…
Reference in New Issue
Block a user