mirror of
https://github.com/nextcloud/server.git
synced 2024-08-13 14:11:10 +02:00
Expose firstRun parameter to frontend
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
bd3d791ee0
commit
ae6be0c110
@ -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());
|
||||
|
@ -62,6 +62,7 @@ import axios from '@nextcloud/axios'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
|
||||
const panels = loadState('dashboard', 'panels')
|
||||
const firstRun = loadState('dashboard', 'firstRun')
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
@ -74,6 +75,7 @@ export default {
|
||||
timer: new Date(),
|
||||
callbacks: {},
|
||||
panels,
|
||||
firstRun,
|
||||
displayName: getCurrentUser()?.displayName,
|
||||
uid: getCurrentUser()?.uid,
|
||||
layout: loadState('dashboard', 'layout').filter((panelId) => panels[panelId]),
|
||||
|
Loading…
Reference in New Issue
Block a user