]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
notification ui: unprotected mailto-root target
authorLukas Wagner <l.wagner@proxmox.com>
Tue, 14 Nov 2023 12:59:49 +0000 (13:59 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 14:04:39 +0000 (15:04 +0100)
A default notification config will now be created in pve-manager's
postinst hook - which is not magic in any way and can be modified
and deleted as desired.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
src/panel/NotificationConfigView.js

index ecf764d82e1b219c09c18245deaeceb0e3d3094c..6a9bc20d49d966008b08143b67a04aa1973078bf 100644 (file)
@@ -41,10 +41,6 @@ Ext.define('Proxmox.panel.NotificationEndpointView', {
        openEditWindow: function(endpointType, endpoint) {
            let me = this;
 
-           if (endpoint === 'mail-to-root') {
-               return;
-           }
-
            Ext.create('Proxmox.window.EndpointEditBase', {
                baseUrl: me.getView().baseUrl,
                type: endpointType,
@@ -183,13 +179,11 @@ Ext.define('Proxmox.panel.NotificationEndpointView', {
                    xtype: 'proxmoxButton',
                    text: gettext('Modify'),
                    handler: 'openEditForSelectedItem',
-                   enableFn: rec => rec.data.name !== 'mail-to-root',
                    disabled: true,
                },
                {
                    xtype: 'proxmoxStdRemoveButton',
                    callback: 'reload',
-                   enableFn: rec => rec.data.name !== 'mail-to-root',
                    getUrl: function(rec) {
                        return `${me.baseUrl}/endpoints/${rec.data.type}/${rec.getId()}`;
                    },