Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-02-17 13:57:34 +0300
committerLouis Chemineau <louis@chmn.me>2022-02-17 13:57:34 +0300
commitb50fd97db484e5f106805d11e6ab3c2a2bfb572f (patch)
treefee10d2b56acbe1f02e7db7b53a66b97048bb5ba /apps/dashboard
parent926bfd5e46e64720c94b610ed833c79f73cf08df (diff)
Load scripts of theming app before the dashboard
This allows dashboard to access OCA.Theming Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/dashboard')
-rw-r--r--apps/dashboard/lib/Controller/DashboardController.php2
1 files changed, 1 insertions, 1 deletions
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)) {