aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/src/AdminTheming.vue
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2023-09-25 14:21:23 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2023-10-20 00:24:17 +0200
commite9d4036389097708a6075d8882c32b1c7db4fb0f (patch)
tree97216c9a992ca14660193d5b0926fc72997bd044 /apps/theming/src/AdminTheming.vue
parent363d9ebb130862d5fc5617e94b1c369caf02553f (diff)
downloadnextcloud-server-e9d4036389097708a6075d8882c32b1c7db4fb0f.tar.gz
nextcloud-server-e9d4036389097708a6075d8882c32b1c7db4fb0f.zip
feat(theming): Allow to configure default apps and app order in frontend settings
* Also add API for setting the value using ajax. * Add cypress tests for app order and defaul apps Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/theming/src/AdminTheming.vue')
-rw-r--r--apps/theming/src/AdminTheming.vue7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/theming/src/AdminTheming.vue b/apps/theming/src/AdminTheming.vue
index 1ced195985e..daef18ebdce 100644
--- a/apps/theming/src/AdminTheming.vue
+++ b/apps/theming/src/AdminTheming.vue
@@ -106,6 +106,7 @@
</a>
</div>
</NcSettingsSection>
+ <AppMenuSection :default-apps.sync="defaultApps" />
</section>
</template>
@@ -118,6 +119,7 @@ import CheckboxField from './components/admin/CheckboxField.vue'
import ColorPickerField from './components/admin/ColorPickerField.vue'
import FileInputField from './components/admin/FileInputField.vue'
import TextField from './components/admin/TextField.vue'
+import AppMenuSection from './components/admin/AppMenuSection.vue'
const {
backgroundMime,
@@ -136,6 +138,7 @@ const {
slogan,
url,
userThemingDisabled,
+ defaultApps,
} = loadState('theming', 'adminThemingParameters')
const textFields = [
@@ -247,6 +250,7 @@ export default {
name: 'AdminTheming',
components: {
+ AppMenuSection,
CheckboxField,
ColorPickerField,
FileInputField,
@@ -259,6 +263,8 @@ export default {
'update:theming',
],
+ textFields,
+
data() {
return {
textFields,
@@ -267,6 +273,7 @@ export default {
advancedTextFields,
advancedFileInputFields,
userThemingField,
+ defaultApps,
canThemeIcons,
docUrl,