aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/bootstrap
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2024-06-18 12:18:17 +0000
committerThomas Hackl <hackl@data-quest.de>2024-06-18 12:18:17 +0000
commit26e02e32841671fa162cf11cb0fa925aa4452da5 (patch)
treee6dc3f0264f966b6095d967828f7971595d27060 /resources/assets/javascripts/bootstrap
parentab3352dec1bc28b5b828b35afb5f2d974d6c3fb1 (diff)
Resolve "Neues Benachrichtungssystem für Stud.IP"
Closes #660 Merge request studip/studip!2557
Diffstat (limited to 'resources/assets/javascripts/bootstrap')
-rw-r--r--resources/assets/javascripts/bootstrap/system-notifications.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/resources/assets/javascripts/bootstrap/system-notifications.js b/resources/assets/javascripts/bootstrap/system-notifications.js
new file mode 100644
index 0000000..7a85fcd
--- /dev/null
+++ b/resources/assets/javascripts/bootstrap/system-notifications.js
@@ -0,0 +1,11 @@
+import SystemNotificationManager from '../../../vue/components/SystemNotificationManager.vue';
+
+STUDIP.domReady(() => {
+ document.getElementById('system-notifications')?.classList.add('vueified');
+ STUDIP.Vue.load().then(({ createApp }) => {
+ createApp({
+ el: '#system-notifications',
+ components: { SystemNotificationManager }
+ });
+ });
+});