From 8523255b4d11c32c234db73dec91a7bf46a44619 Mon Sep 17 00:00:00 2001 From: GretaD Date: Wed, 9 Sep 2020 12:09:55 +0200 Subject: [PATCH] Change account settings to modal Signed-off-by: GretaD --- src/components/NavigationAccount.vue | 18 ++++++- src/views/AccountSettings.vue | 73 ++++++++++++++-------------- 2 files changed, 53 insertions(+), 38 deletions(-) diff --git a/src/components/NavigationAccount.vue b/src/components/NavigationAccount.vue index 67a0247ec6..a6bab72684 100644 --- a/src/components/NavigationAccount.vue +++ b/src/components/NavigationAccount.vue @@ -41,6 +41,7 @@ {{ t('mail', 'Account settings') }} + import AppNavigationItem from '@nextcloud/vue/dist/Components/AppNavigationItem' import AppNavigationIconBullet from '@nextcloud/vue/dist/Components/AppNavigationIconBullet' -import ActionRouter from '@nextcloud/vue/dist/Components/ActionRouter' import ActionButton from '@nextcloud/vue/dist/Components/ActionButton' import ActionCheckbox from '@nextcloud/vue/dist/Components/ActionCheckbox' import ActionInput from '@nextcloud/vue/dist/Components/ActionInput' @@ -81,13 +81,14 @@ import { generateUrl } from '@nextcloud/router' import { calculateAccountColor } from '../util/AccountColor' import logger from '../logger' import { fetchQuota } from '../service/AccountService' +import AccountSettings from '../views/AccountSettings' export default { name: 'NavigationAccount', components: { + AccountSettings, AppNavigationItem, AppNavigationIconBullet, - ActionRouter, ActionButton, ActionCheckbox, ActionInput, @@ -121,6 +122,7 @@ export default { quota: undefined, editing: false, showSaving: false, + displayAccountSettings: false, } }, computed: { @@ -269,6 +271,18 @@ export default { this.quota = quota } }, + /** + * Hide the keyboard shortcuts overview + */ + closeAccountSettings() { + this.displayAccountSettings = false + }, + /** + * Toggles the keyboard shortcuts overview + */ + toggleAccountSettings() { + this.displayAccountSettings = !this.displayAccountSettings + }, }, } diff --git a/src/views/AccountSettings.vue b/src/views/AccountSettings.vue index b51a31bc6f..8591618896 100644 --- a/src/views/AccountSettings.vue +++ b/src/views/AccountSettings.vue @@ -1,57 +1,50 @@