aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dashboard/lib/Controller
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-12-03 15:12:18 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-01-08 10:14:53 +0100
commitdd7bf0f902570d4561c07237ea9072f4fc1d3edc (patch)
tree0116d397d454e95f1ebbd584230f16820c5ebd72 /apps/dashboard/lib/Controller
parent806a176a57526b55c18817577325509dfb4ef648 (diff)
downloadnextcloud-server-dd7bf0f902570d4561c07237ea9072f4fc1d3edc.tar.gz
nextcloud-server-dd7bf0f902570d4561c07237ea9072f4fc1d3edc.zip
Fix dynamic loading
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/dashboard/lib/Controller')
-rw-r--r--apps/dashboard/lib/Controller/DashboardController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php
index 88baa641b45..f79f8b992d1 100644
--- a/apps/dashboard/lib/Controller/DashboardController.php
+++ b/apps/dashboard/lib/Controller/DashboardController.php
@@ -94,6 +94,8 @@ class DashboardController extends Controller {
*/
public function index(): TemplateResponse {
\OCP\Util::addStyle('dashboard', 'dashboard');
+ \OCP\Util::addScript('dashboard', 'main');
+
$this->eventDispatcher->dispatchTyped(new LoadSidebar());
if (class_exists(LoadViewer::class)) {
$this->eventDispatcher->dispatchTyped(new LoadViewer());