Merge pull request #31238 from nextcloud/fix/dashboard_theming

Load scripts of theming app before the dashboard
This commit is contained in:
Louis 2022-02-17 13:19:02 +01:00 committed by GitHub
commit 098dfe15c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)) {