From b665fa8dc7ca5fa5425988bc21fe908be6ab2aff Mon Sep 17 00:00:00 2001 From: Thomas Hackl <hackl@data-quest.de> Date: Mon, 5 Aug 2024 10:25:09 +0000 Subject: [PATCH] Resolve "Neue Notifications auf der Loginseite sind kaputt" Closes #4434 Merge request studip/studip!3223 --- templates/loginform.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/loginform.php b/templates/loginform.php index da717eb8e5e..96ed42bcee6 100644 --- a/templates/loginform.php +++ b/templates/loginform.php @@ -34,11 +34,13 @@ $show_hidden_login = !$show_login && StudipAuthAbstract::isLoginEnabled(); <div> <div id="loginbox"> <header> - <system-notification-manager - id="system-notifications" - class="system-notifications-login" - :notifications='<?= htmlReady(json_encode(PageLayout::getMessages())) ?>' - append-all-to="#loginbox"></system-notification-manager> + <?= Studip\VueApp::create('SystemNotificationManager') + ->withProps([ + 'id' => 'system-notifications', + 'class' => 'system-notifications-login', + 'notifications' => PageLayout::getMessages(MessageBox::class), + 'append-all-to' => '#loginbox' + ]) ?> <h1><?= htmlReady(Config::get()->UNI_NAME_CLEAN) ?></h1> </header> -- GitLab