]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/Makefile
ui: backup: allow to select notification target for jobs
authorLukas Wagner <l.wagner@proxmox.com>
Thu, 3 Aug 2023 12:17:04 +0000 (14:17 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 16 Aug 2023 09:11:12 +0000 (11:11 +0200)
commit2c4780cc189daa6916fe3b9a342a0a7fb4eb9427
tree59abdcbb81762d153c7d5edcf9992b61999295ab
parent1ba1988dcf0e1039eb8f3e01a5ff8379c71e1f01
ui: backup: allow to select notification target for jobs

This commit adds a possibility to choose between different options
for notifications for backup jobs:
    - Notify via email, in the same manner as before
    - Notify via an endpoint/group

If 'notify via mail' is selected, a text field where an email address
can be entered is displayed:

    Notify:         | Always notify  v |
    Notify via:     | E-Mail         v |
    Send Mail to:   | foo@example.com  |
    Compression:    | .....          v |

If the other option is selected selected, a combo picker for selecting
a channel is displayed:

    Notify:         | Always notify  v |
    Notify via:     | Endpoint/Group v |
    Target:         | endpoint-foo   v |
    Compression:    | .....          v |

The code has also been adapted to use the newly introduced
'notification-policy' parameter, which replaces the 'mailnotification'
paramter for backup jobs. Some logic which automatically migrates from
'mailnotification' has been added.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
www/manager6/Makefile
www/manager6/dc/Backup.js
www/manager6/form/EmailNotificationSelector.js [deleted file]
www/manager6/form/NotificationModeSelector.js [new file with mode: 0644]
www/manager6/form/NotificationPolicySelector.js [new file with mode: 0644]
www/manager6/form/NotificationTargetSelector.js [new file with mode: 0644]