aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dashboard/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-07-31 13:27:43 +0200
committerJulius Härtl <jus@bitgrid.net>2020-08-05 17:01:30 +0200
commitae6be0c110dcf150440e9d7af70162b8510736c7 (patch)
tree270c855372cdb3861e5f600519a602372066d212 /apps/dashboard/lib
parentbd3d791ee032acd61ad7e62bb10a88a6335dcc39 (diff)
downloadnextcloud-server-ae6be0c110dcf150440e9d7af70162b8510736c7.tar.gz
nextcloud-server-ae6be0c110dcf150440e9d7af70162b8510736c7.zip
Expose firstRun parameter to frontend
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard/lib')
-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 e796ae67ccd..2da01749744 100644
--- a/apps/dashboard/lib/Controller/DashboardController.php
+++ b/apps/dashboard/lib/Controller/DashboardController.php
@@ -89,6 +89,8 @@ class DashboardController extends Controller {
}, $this->dashboardManager->getPanels());
$this->inititalStateService->provideInitialState('dashboard', 'panels', $panels);
$this->inititalStateService->provideInitialState('dashboard', 'layout', $userLayout);
+ $this->inititalStateService->provideInitialState('dashboard', 'firstRun', $this->config->getUserValue($this->userId, 'dashboard', 'firstRun', '1') === '1');
+ $this->config->setUserValue($this->userId, 'dashboard', 'firstRun', '0');
if (class_exists(LoadViewer::class)) {
$this->eventDispatcher->dispatchTyped(new LoadViewer());