mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-22 17:17:49 +00:00
notification ui: unprotected mailto-root target
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>
This commit is contained in:
parent
03a54ebd29
commit
5bd3ad4e90
@ -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()}`;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user