diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-09-15 22:02:23 +0300 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-09-15 22:02:23 +0300 |
commit | b1856d0fc9a512b9f1bf0264a24345770cb4d56c (patch) | |
tree | 98e2a4445474336ce1657c716bfe0d74b071ca27 /apps | |
parent | ca747b91d4aa907b191119f080d213bfb5e60fd2 (diff) |
Fix initial state typo in dashboard controller
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardController.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php index 6a7690b535c..b0e150e00f7 100644 --- a/apps/dashboard/lib/Controller/DashboardController.php +++ b/apps/dashboard/lib/Controller/DashboardController.php @@ -45,7 +45,7 @@ use OCP\IRequest; class DashboardController extends Controller { /** @var IInitialState */ - private $inititalState; + private $initialState; /** @var IEventDispatcher */ private $eventDispatcher; /** @var IManager */ @@ -66,7 +66,7 @@ class DashboardController extends Controller { ) { parent::__construct($appName, $request); - $this->inititalState = $initialState; + $this->initialState = $initialState; $this->eventDispatcher = $eventDispatcher; $this->dashboardManager = $dashboardManager; $this->config = $config; @@ -105,10 +105,10 @@ class DashboardController extends Controller { // It does not matter if some statuses are missing from the array, missing ones are considered enabled $statuses = ($statuses && count($statuses) > 0) ? $statuses : ['weather' => true]; - $this->inititalState->provideInitialState('panels', $widgets); - $this->inititalState->provideInitialState('statuses', $statuses); - $this->inititalState->provideInitialState('layout', $userLayout); - $this->inititalState->provideInitialState('firstRun', $this->config->getUserValue($this->userId, 'dashboard', 'firstRun', '1') === '1'); + $this->initialState->provideInitialState('panels', $widgets); + $this->initialState->provideInitialState('statuses', $statuses); + $this->initialState->provideInitialState('layout', $userLayout); + $this->initialState->provideInitialState('firstRun', $this->config->getUserValue($this->userId, 'dashboard', 'firstRun', '1') === '1'); $this->config->setUserValue($this->userId, 'dashboard', 'firstRun', '0'); $response = new TemplateResponse('dashboard', 'index', [ |