ui: add notification config panel

This commit adds the same notification configuration panel that we
already use in Proxmox VE.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Gabriel Goller <g.goller@proxmox.com>
Reviewed-by: Gabriel Goller <g.goller@proxmox.com>
Tested-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Lukas Wagner 2024-04-23 13:52:13 +02:00 committed by Thomas Lamprecht
parent a4f1b175d1
commit 0098c9f6f2
3 changed files with 18 additions and 0 deletions

View File

@ -68,6 +68,7 @@ JSSRC= \
config/CertificateView.js \
config/NodeOptionView.js \
config/MetricServerView.js \
config/NotificationConfigView.js \
config/PruneAndGC.js \
window/ACLEdit.js \
window/BackupGroupChangeOwner.js \

View File

@ -68,6 +68,12 @@ Ext.define('PBS.store.NavigationStore', {
path: 'pbsCertificateConfiguration',
leaf: true,
},
{
text: gettext('Notifications'),
iconCls: 'fa fa-bell-o',
path: 'pbsNotificationConfigView',
leaf: true,
},
{
text: gettext('Subscription'),
iconCls: 'fa fa-support',

View File

@ -0,0 +1,11 @@
Ext.define('PBS.config.NotificationConfigView', {
extend: 'Proxmox.panel.NotificationConfigView',
alias: ['widget.pbsNotificationConfigView'],
mixins: ['Proxmox.Mixin.CBind'],
cbindData: function(_initialConfig) {
return {
baseUrl: '/config/notifications',
};
},
});