Skip to content

Commit

Permalink
Widget: set status after change
Browse files Browse the repository at this point in the history
Although we're reloading the page afterwards, we need to set the correct status
for testing purposes.
  • Loading branch information
gusthoff committed Sep 29, 2023
1 parent a45c833 commit 61329eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/ts/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ class Widget {
tabbedView = 'false';
}
cookies.set('tabbed_view', tabbedView, {expires: 3650});
this.setTabbedView(tabSetting.checked);

// Current approach: just reload the page to
// set the correct theme for all widgets.
Expand All @@ -182,6 +183,7 @@ class Widget {
theme = 'dark';
}
cookies.set('theme', theme, {expires: 3650});
this.setTheme(theme);

// Current approach: just reload the page to
// set the correct theme for all widgets.
Expand Down

0 comments on commit 61329eb

Please sign in to comment.