From b50fd97db484e5f106805d11e6ab3c2a2bfb572f Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 17 Feb 2022 11:57:34 +0100 Subject: Load scripts of theming app before the dashboard This allows dashboard to access OCA.Theming Signed-off-by: Louis Chemineau --- apps/dashboard/lib/Controller/DashboardController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/dashboard') diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index f79f8b992d1..3763b07e7bc 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -94,7 +94,7 @@ class DashboardController extends Controller { */ public function index(): TemplateResponse { \OCP\Util::addStyle('dashboard', 'dashboard'); - \OCP\Util::addScript('dashboard', 'main'); + \OCP\Util::addScript('dashboard', 'main', 'theming'); $this->eventDispatcher->dispatchTyped(new LoadSidebar()); if (class_exists(LoadViewer::class)) { -- cgit v1.2.3