From 285570402f99c1b16ed8f758cd60eb0bf07aa75b Mon Sep 17 00:00:00 2001 From: Marcel Robitaille Date: Tue, 18 Oct 2022 02:16:17 +0200 Subject: [PATCH 1/7] Add an app configuration Fixes #1067 Move the AppNavigationSettings from the sidebar to a AppSettingsDialog modal that covers the screen. Signed-off-by: Marcel Robitaille --- src/components/AppMain.vue | 3 + src/components/AppNavi.vue | 51 ++----- .../{AppSettings.vue => SettingsDialog.vue} | 141 +++++++++++++----- 3 files changed, 119 insertions(+), 76 deletions(-) rename src/components/{AppSettings.vue => SettingsDialog.vue} (66%) diff --git a/src/components/AppMain.vue b/src/components/AppMain.vue index bbfa2a604..984842174 100644 --- a/src/components/AppMain.vue +++ b/src/components/AppMain.vue @@ -16,6 +16,7 @@ /> + @@ -26,6 +27,7 @@ import NcContent from "@nextcloud/vue/dist/Components/NcContent" import AppControls from "cookbook/components/AppControls/AppControls.vue" import { emit, subscribe, unsubscribe } from "@nextcloud/event-bus" import AppNavi from "./AppNavi.vue" +import SettingsDialog from "./SettingsDialog.vue" export default { name: "AppMain", @@ -33,6 +35,7 @@ export default { NcAppContent, AppControls, AppNavi, + SettingsDialog, // eslint-disable-next-line vue/no-reserved-component-names NcContent, }, diff --git a/src/components/AppNavi.vue b/src/components/AppNavi.vue index ece23572a..37c09cce4 100644 --- a/src/components/AppNavi.vue +++ b/src/components/AppNavi.vue @@ -73,15 +73,18 @@ diff --git a/src/components/AppSettings.vue b/src/components/SettingsDialog.vue similarity index 66% rename from src/components/AppSettings.vue rename to src/components/SettingsDialog.vue index 43433c2f6..1eb4e1050 100644 --- a/src/components/AppSettings.vue +++ b/src/components/SettingsDialog.vue @@ -1,19 +1,24 @@ + + From f9938e2c00036f64a2e32314c9ce4c673449541c Mon Sep 17 00:00:00 2001 From: Marcel Robitaille Date: Tue, 18 Oct 2022 02:20:02 +0200 Subject: [PATCH 2/7] Update changelog Signed-off-by: Marcel Robitaille --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d635ae64b..737ef6328 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,10 @@ - Allow import of recipes with HowToSections [#1255](https://github.com/nextcloud/cookbook/pull/1255) @christianlupus +### Changed +- Add an app configuration (settings modal) to replace the one in the sidebar + [#1258](https://github.com/nextcloud/cookbook/pull/1258) @MarcelRobitaille + ## 0.9.17 - 2022-10-31 From 749e558c8c74e280fae60b15db4f8a9412e08aa4 Mon Sep 17 00:00:00 2001 From: Marcel Robitaille Date: Tue, 18 Oct 2022 02:27:42 +0200 Subject: [PATCH 3/7] Add reminder to use @nextcloud/vue LoadingIcon Signed-off-by: Marcel Robitaille --- src/components/SettingsDialog.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/SettingsDialog.vue b/src/components/SettingsDialog.vue index 1eb4e1050..de1ebce5d 100644 --- a/src/components/SettingsDialog.vue +++ b/src/components/SettingsDialog.vue @@ -276,6 +276,8 @@ export default {