4545class DashboardController extends Controller {
4646
4747 /** @var IInitialState */
48- private $ inititalState ;
48+ private $ initialState ;
4949 /** @var IEventDispatcher */
5050 private $ eventDispatcher ;
5151 /** @var IManager */
@@ -66,7 +66,7 @@ public function __construct(
6666 ) {
6767 parent ::__construct ($ appName , $ request );
6868
69- $ this ->inititalState = $ initialState ;
69+ $ this ->initialState = $ initialState ;
7070 $ this ->eventDispatcher = $ eventDispatcher ;
7171 $ this ->dashboardManager = $ dashboardManager ;
7272 $ this ->config = $ config ;
@@ -105,10 +105,10 @@ public function index(): TemplateResponse {
105105 // It does not matter if some statuses are missing from the array, missing ones are considered enabled
106106 $ statuses = ($ statuses && count ($ statuses ) > 0 ) ? $ statuses : ['weather ' => true ];
107107
108- $ this ->inititalState ->provideInitialState ('panels ' , $ widgets );
109- $ this ->inititalState ->provideInitialState ('statuses ' , $ statuses );
110- $ this ->inititalState ->provideInitialState ('layout ' , $ userLayout );
111- $ this ->inititalState ->provideInitialState ('firstRun ' , $ this ->config ->getUserValue ($ this ->userId , 'dashboard ' , 'firstRun ' , '1 ' ) === '1 ' );
108+ $ this ->initialState ->provideInitialState ('panels ' , $ widgets );
109+ $ this ->initialState ->provideInitialState ('statuses ' , $ statuses );
110+ $ this ->initialState ->provideInitialState ('layout ' , $ userLayout );
111+ $ this ->initialState ->provideInitialState ('firstRun ' , $ this ->config ->getUserValue ($ this ->userId , 'dashboard ' , 'firstRun ' , '1 ' ) === '1 ' );
112112 $ this ->config ->setUserValue ($ this ->userId , 'dashboard ' , 'firstRun ' , '0 ' );
113113
114114 $ response = new TemplateResponse ('dashboard ' , 'index ' , [
0 commit comments