From bfd69d6f0414d003ad75d425a2c7852a42240f34 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 5 Dec 2022 00:21:24 +0100 Subject: [PATCH] Add buttons for member index --- resources/js/layouts/AppLayout.vue | 10 ++-- resources/js/views/member/VIndex.vue | 58 ++------------------- resources/js/views/member/index/Actions.vue | 55 +++++++++++++++++++ 3 files changed, 66 insertions(+), 57 deletions(-) create mode 100644 resources/js/views/member/index/Actions.vue diff --git a/resources/js/layouts/AppLayout.vue b/resources/js/layouts/AppLayout.vue index a6ec8da5..2f479436 100644 --- a/resources/js/layouts/AppLayout.vue +++ b/resources/js/layouts/AppLayout.vue @@ -154,10 +154,12 @@ export default { window.addEventListener('resize', this.menuListener); this.menuListener(); - window.addEventListener('inertiaStart', (e) => { - _self.menuVisible = false; - _self.searchVisible = false; - _self.menuOverflowVisible = false; + window.addEventListener('inertiaStart', () => { + if (!window.matchMedia('(min-width: 1024px)').matches) { + _self.menuVisible = false; + _self.searchVisible = false; + _self.menuOverflowVisible = false; + } }); }, }; diff --git a/resources/js/views/member/VIndex.vue b/resources/js/views/member/VIndex.vue index e215ae90..df64e654 100644 --- a/resources/js/views/member/VIndex.vue +++ b/resources/js/views/member/VIndex.vue @@ -34,57 +34,7 @@ -
- - - - - - - -
+ @@ -95,14 +45,15 @@
-
+
+
import(/* webpackChunkName: "member" */ './AgeGroups'), 'tags': () => import(/* webpackChunkName: "member" */ './Tags'), + 'actions': () => import(/* webpackChunkName: "member" */ './index/Actions'), }, methods: { diff --git a/resources/js/views/member/index/Actions.vue b/resources/js/views/member/index/Actions.vue new file mode 100644 index 00000000..b6ee9c87 --- /dev/null +++ b/resources/js/views/member/index/Actions.vue @@ -0,0 +1,55 @@ + + +