diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-10-21 00:51:15 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-10-21 03:52:25 +0200 |
commit | 615a6846dac3cf8cd4e5f42c9859d4af4b78b28b (patch) | |
tree | d92e4fc3f06b381ebde0acde993ce2af7c835316 /apps/theming/lib | |
parent | 9697df1ea5782fce0752bcebfa3318c05cc0ed1f (diff) | |
download | nextcloud-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.php | 5 |
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'); |