summaryrefslogtreecommitdiffstats
path: root/apps/dashboard
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2022-09-15 16:36:41 -0700
committerGitHub <noreply@github.com>2022-09-15 16:36:41 -0700
commitfcd45c1b63b868c0e59907a623e53c5f3ff87229 (patch)
tree0cff0ad8480f04a68d927a99aa4d6537290e451e /apps/dashboard
parentb9cd65291a74adf18112014ccc0c6ecfaed64694 (diff)
parentb1856d0fc9a512b9f1bf0264a24345770cb4d56c (diff)
downloadnextcloud-server-fcd45c1b63b868c0e59907a623e53c5f3ff87229.tar.gz
nextcloud-server-fcd45c1b63b868c0e59907a623e53c5f3ff87229.zip
Merge pull request #34101 from nextcloud/fix/dashboard-controller-typo
Fix initial state typo in dashboard controller
Diffstat (limited to 'apps/dashboard')
-rw-r--r--apps/dashboard/lib/Controller/DashboardController.php12
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', [