}, $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());
import { generateUrl } from '@nextcloud/router'
const panels = loadState('dashboard', 'panels')
+const firstRun = loadState('dashboard', 'firstRun')
export default {
name: 'App',
timer: new Date(),
callbacks: {},
panels,
+ firstRun,
displayName: getCurrentUser()?.displayName,
uid: getCurrentUser()?.uid,
layout: loadState('dashboard', 'layout').filter((panelId) => panels[panelId]),