From 9f0e41fcb43acc7301b025cc4d018d6c08686ef2 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Wed, 15 Oct 2025 15:15:45 +0200 Subject: remove debug code, add new VueAppDidCreate --- lib/bootstrap.php | 13 ------------- lib/classes/VueApp.php | 1 + 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/lib/bootstrap.php b/lib/bootstrap.php index 7edeab5..b1b336e 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -280,16 +280,3 @@ $mail_transporter->default_charset = 'UTF-8'; $mail_transporter->SetBulkMail((int)$GLOBALS['MAIL_BULK_DELIVERY']); StudipMail::setDefaultTransporter($mail_transporter); unset($mail_transporter); - -NotificationCenter::on('VueAppWillRender', function (string $event, Studip\VueApp $app): void { - if ($app->getAppPath() === 'GlobalSearchBar') { - $urlPrefix = URLHelper::getURL('dispatch.php', [], true); - $ownUsername = User::findCurrent()->username; - $template = << - klick - -EOF; - $app->setSlot('expand', $template); - } -}); diff --git a/lib/classes/VueApp.php b/lib/classes/VueApp.php index 7e59a66..023f8b2 100644 --- a/lib/classes/VueApp.php +++ b/lib/classes/VueApp.php @@ -53,6 +53,7 @@ final class VueApp implements Stringable private function __construct( private readonly string $appPath ) { + \NotificationCenter::postNotification('VueAppDidCreate', $this); } /** -- cgit v1.0