diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2024-06-18 12:18:17 +0000 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2024-06-18 12:18:17 +0000 |
| commit | 26e02e32841671fa162cf11cb0fa925aa4452da5 (patch) | |
| tree | e6dc3f0264f966b6095d967828f7971595d27060 /resources/assets/javascripts | |
| parent | ab3352dec1bc28b5b828b35afb5f2d974d6c3fb1 (diff) | |
Resolve "Neues Benachrichtungssystem für Stud.IP"
Closes #660
Merge request studip/studip!2557
Diffstat (limited to 'resources/assets/javascripts')
| -rw-r--r-- | resources/assets/javascripts/bootstrap/system-notifications.js | 11 | ||||
| -rw-r--r-- | resources/assets/javascripts/entry-base.js | 2 |
2 files changed, 13 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 } + }); + }); +}); diff --git a/resources/assets/javascripts/entry-base.js b/resources/assets/javascripts/entry-base.js index 2683439..5f88c30 100644 --- a/resources/assets/javascripts/entry-base.js +++ b/resources/assets/javascripts/entry-base.js @@ -16,6 +16,8 @@ import "./init.js" import "./bootstrap/responsive.js" import "./bootstrap/vue.js" +import "./bootstrap/system-notifications.js" + import "./bootstrap/my-courses.js"; import "./studip-ui.js" |
