summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-10-21 00:51:15 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-10-21 03:52:25 +0200
commit615a6846dac3cf8cd4e5f42c9859d4af4b78b28b (patch)
treed92e4fc3f06b381ebde0acde993ce2af7c835316 /apps/theming/lib
parent9697df1ea5782fce0752bcebfa3318c05cc0ed1f (diff)
downloadnextcloud-server-615a6846dac3cf8cd4e5f42c9859d4af4b78b28b.tar.gz
nextcloud-server-615a6846dac3cf8cd4e5f42c9859d4af4b78b28b.zip
feat(theming): Allow to reset the user defined app order to the default value
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r--apps/theming/lib/Settings/Personal.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/theming/lib/Settings/Personal.php b/apps/theming/lib/Settings/Personal.php
index 4b7a7b0e8a1..c175416f978 100644
--- a/apps/theming/lib/Settings/Personal.php
+++ b/apps/theming/lib/Settings/Personal.php
@@ -74,7 +74,10 @@ class Personal implements ISettings {
$this->initialStateService->provideInitialState('themes', array_values($themes));
$this->initialStateService->provideInitialState('enforceTheme', $enforcedTheme);
$this->initialStateService->provideInitialState('isUserThemingDisabled', $this->themingDefaults->isUserThemingDisabled());
- $this->initialStateService->provideInitialState('enforcedDefaultApp', $forcedDefaultApp);
+ $this->initialStateService->provideInitialState('navigationBar', [
+ 'userAppOrder' => json_decode($this->config->getUserValue($this->userId, 'core', 'apporder', '[]'), true, flags:JSON_THROW_ON_ERROR),
+ 'enforcedDefaultApp' => $forcedDefaultApp
+ ]);
Util::addScript($this->appName, 'personal-theming');