]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
fix #1295: ui: allow one to configure new notification settings
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 3 Jan 2023 15:45:16 +0000 (16:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 3 Jan 2023 15:51:31 +0000 (16:51 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/OptionView.js

index 081f9c488a18e94a6e7046f7cf5f286b8bc57660..476e683c9dc053364b717d7596574fcc144f3793 100644 (file)
@@ -91,6 +91,26 @@ Ext.define('PVE.dc.OptionView', {
            vtype: 'proxmoxMail',
            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'), {
            deleteEmpty: true,
            vtype: 'MacPrefix',