mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-17 16:30:07 +00:00

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>
10 lines
289 B
JavaScript
10 lines
289 B
JavaScript
Ext.define('PVE.form.EmailNotificationSelector', {
|
|
extend: 'Proxmox.form.KVComboBox',
|
|
alias: ['widget.pveEmailNotificationSelector'],
|
|
comboItems: [
|
|
['always', gettext('Notify always')],
|
|
['failure', gettext('On failure only')],
|
|
['never', gettext('Notify never')],
|
|
],
|
|
});
|