From 800f7abbfcdb2b2cc21043347b12d283ac6ee51c Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 31 Jan 2024 18:51:59 +0100 Subject: [PATCH] overhaul settings: Use settings modal Signed-off-by: Marcel Klehr --- lib/Service/UserSettingsService.php | 1 + src/components/Navigation.vue | 12 +- src/components/Settings.vue | 171 ++++++++++++++-------------- 3 files changed, 94 insertions(+), 90 deletions(-) diff --git a/lib/Service/UserSettingsService.php b/lib/Service/UserSettingsService.php index 29ac59d2..b5162d33 100644 --- a/lib/Service/UserSettingsService.php +++ b/lib/Service/UserSettingsService.php @@ -100,6 +100,7 @@ class UserSettingsService { $array[$key] = $this->get($key); } $array['limit'] = $this->get('limit'); + $array['privacy.enableScraping'] = $this->get('privacy.enableScraping'); return $array; } } diff --git a/src/components/Navigation.vue b/src/components/Navigation.vue index 942481d5..4bfc6026 100644 --- a/src/components/Navigation.vue +++ b/src/components/Navigation.vue @@ -104,9 +104,8 @@ @@ -125,6 +124,7 @@ import VectorLinkIcon from 'vue-material-design-icons/VectorLink.vue' import TagIcon from 'vue-material-design-icons/Tag.vue' import DeleteIcon from 'vue-material-design-icons/Delete.vue' import GaugeIcon from 'vue-material-design-icons/Gauge.vue' +import CogIcon from 'vue-material-design-icons/Cog.vue' import ProgressBar from 'vue-simple-progress' import Settings from './Settings.vue' import { actions, mutations } from '../store/index.js' @@ -136,7 +136,6 @@ export default { NcAppNavigationItem, NcAppNavigationNewItem, NcCounterBubble, - NcAppNavigationSettings, NcAppNavigationSpacer, NcActionButton, Settings, @@ -153,6 +152,7 @@ export default { TagIcon, DeleteIcon, GaugeIcon, + CogIcon, }, filters: { @@ -161,7 +161,9 @@ export default { }, }, data() { - return {} + return { + settingsOpen: false, + } }, computed: { tags() { diff --git a/src/components/Settings.vue b/src/components/Settings.vue index c6e03f0b..ee390ab9 100644 --- a/src/components/Settings.vue +++ b/src/components/Settings.vue @@ -5,62 +5,78 @@ -->