Skip to content
Snippets Groups Projects
Commit c3f4cc4a authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

resurrect system notifications (got lost in a6c10e36), re #4294, re #660

parent 95e76cca
No related branches found
No related tags found
No related merge requests found
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 }
});
});
});
...@@ -95,10 +95,12 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']); ...@@ -95,10 +95,12 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']);
<?= implode(PageLayout::getMessages(QuestionBox::class)) ?> <?= implode(PageLayout::getMessages(QuestionBox::class)) ?>
<?= $content_for_layout ?> <?= $content_for_layout ?>
</div> </div>
<system-notification-manager <?= Studip\VueApp::create('SystemNotificationManager')
id="system-notifications" ->withProps([
:notifications='<?= htmlReady(json_encode(PageLayout::getMessages(MessageBox::class))) ?>' 'id' => 'system-notifications',
placement="<?= User::findCurrent()?->getConfiguration()->SYSTEM_NOTIFICATIONS_PLACEMENT ?? 'topcenter' ?>"></system-notification-manager> 'notifications' => PageLayout::getMessages(MessageBox::class),
'placement' => User::findCurrent()?->getConfiguration()->SYSTEM_NOTIFICATIONS_PLACEMENT ?? 'topcenter',
]) ?>
</main> </main>
<!-- End main content --> <!-- End main content -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment