Fix local store detection and related issues

- Add localStore into the stash because it's used in templates
- Hide the Channels button for non-local stores because the link 404s
  anyway
- Fix a style issue when having popovers in dark mode
This commit is contained in:
Janne Heß
2022-02-13 14:24:36 +01:00
parent d0bc0d0eda
commit 54675a0d94
3 changed files with 5 additions and 4 deletions

View File

@@ -52,6 +52,7 @@ sub begin :Private {
$c->stash->{tracker} = defined $c->config->{tracker} ? $c->config->{tracker} : "";
$c->stash->{flashMsg} = $c->flash->{flashMsg};
$c->stash->{successMsg} = $c->flash->{successMsg};
$c->stash->{localStore} = isLocalStore;
$c->stash->{isPrivateHydra} = $c->config->{private} // "0" ne "0";