From b85beb06eb78c250f408e991b100a441138bfe18 Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 30 May 2021 18:30:08 +0000 Subject: [PATCH] Quick Actions & global search (#528) Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/528 Co-authored-by: konrad Co-committed-by: konrad --- src/components/home/contentAuth.vue | 7 +- src/components/home/topNavigation.vue | 13 +- src/components/input/multiselect.vue | 37 +- .../notifications/notifications.vue | 2 +- .../quick-actions/quick-actions.vue | 388 ++++++++++++++++++ src/store/index.js | 12 +- src/store/mutation-types.js | 1 + src/styles/components/_all.scss | 1 + src/styles/components/base/multiselect.scss | 4 + src/styles/components/notifications.scss | 26 +- src/styles/components/quick-actions.scss | 67 +++ src/styles/theme/navigation.scss | 181 ++++---- src/views/tasks/TaskDetailView.vue | 5 +- 13 files changed, 630 insertions(+), 114 deletions(-) create mode 100644 src/components/quick-actions/quick-actions.vue create mode 100644 src/styles/components/quick-actions.scss diff --git a/src/components/home/contentAuth.vue b/src/components/home/contentAuth.vue index 2918915b..cee4fadb 100644 --- a/src/components/home/contentAuth.vue +++ b/src/components/home/contentAuth.vue @@ -20,6 +20,8 @@ > + + @@ -43,10 +45,11 @@ import {mapState} from 'vuex' import {CURRENT_LIST, KEYBOARD_SHORTCUTS_ACTIVE, MENU_ACTIVE} from '@/store/mutation-types' import Navigation from '@/components/home/navigation' +import QuickActions from '@/components/quick-actions/quick-actions' export default { name: 'contentAuth', - components: {Navigation}, + components: {QuickActions, Navigation}, watch: { '$route': 'doStuffAfterRoute', }, @@ -83,7 +86,7 @@ export default { this.$route.name === 'user.settings' || this.$route.name === 'namespaces.index' ) { - this.$store.commit(CURRENT_LIST, {}) + this.$store.commit(CURRENT_LIST, null) } }, renewTokenOnFocus() { diff --git a/src/components/home/topNavigation.vue b/src/components/home/topNavigation.vue index fed0f0a4..5a475f15 100644 --- a/src/components/home/topNavigation.vue +++ b/src/components/home/topNavigation.vue @@ -37,6 +37,14 @@