diff --git a/www/Makefile b/www/Makefile index b612a116..f86cbb4d 100644 --- a/www/Makefile +++ b/www/Makefile @@ -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 \ diff --git a/www/NavigationTree.js b/www/NavigationTree.js index 3e0040f7..a5ea390f 100644 --- a/www/NavigationTree.js +++ b/www/NavigationTree.js @@ -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', diff --git a/www/config/NotificationConfigView.js b/www/config/NotificationConfigView.js new file mode 100644 index 00000000..904cee71 --- /dev/null +++ b/www/config/NotificationConfigView.js @@ -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', + }; + }, +});