Skip to content

Commit

Permalink
build: add extracted styles in templates
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed Aug 12, 2024
1 parent 9f8de7b commit 87a0c86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Listener/BeforeTemplateRenderedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public function handle(Event $event): void {
!$this->notificationManager->isFairUseOfFreePushService()
);

Util::addStyle('notifications', 'notifications-main');
Util::addScript('notifications', 'notifications-main');
}
}
1 change: 1 addition & 0 deletions lib/Settings/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct(
}

public function getForm(): TemplateResponse {
Util::addStyle('notifications', 'notifications-admin-settings');
Util::addScript('notifications', 'notifications-admin-settings');

$defaultSoundNotification = $this->config->getAppValue(Application::APP_ID, 'sound_notification') === 'yes' ? 'yes' : 'no';
Expand Down
1 change: 1 addition & 0 deletions lib/Settings/Personal.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function __construct(IConfig $config,
* @return TemplateResponse
*/
public function getForm(): TemplateResponse {
Util::addStyle('notifications', 'notifications-settings');
Util::addScript('notifications', 'notifications-settings');

/** @var IUser $user */
Expand Down

0 comments on commit 87a0c86

Please sign in to comment.