From 6972091ad0c073a6d07a7ee5135bc10d2b22c98a Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sat, 30 Dec 2023 01:19:02 +0100 Subject: [PATCH] Move group link to memberships --- app/Activity/Resources/ActivityResource.php | 1 + .../Actions/MassListAction.php} | 8 ++++---- ...oreForGroupAction.php => MassStoreAction.php} | 2 +- resources/js/layouts/AppLayout.vue | 9 +++++---- resources/js/views/activity/VIndex.vue | 16 +++++++--------- resources/js/views/group/Index.vue | 4 ++-- tests/Feature/Activity/IndexTest.php | 1 + 7 files changed, 21 insertions(+), 20 deletions(-) rename app/{Group/Actions/ListAction.php => Membership/Actions/MassListAction.php} (78%) rename app/Membership/Actions/{StoreForGroupAction.php => MassStoreAction.php} (99%) diff --git a/app/Activity/Resources/ActivityResource.php b/app/Activity/Resources/ActivityResource.php index 54b38d05..4bf99653 100644 --- a/app/Activity/Resources/ActivityResource.php +++ b/app/Activity/Resources/ActivityResource.php @@ -55,6 +55,7 @@ class ActivityResource extends JsonResource 'links' => [ 'index' => route('activity.index'), 'create' => route('activity.create'), + 'membership_masslist' => route('membership.masslist.index'), ], ]; } diff --git a/app/Group/Actions/ListAction.php b/app/Membership/Actions/MassListAction.php similarity index 78% rename from app/Group/Actions/ListAction.php rename to app/Membership/Actions/MassListAction.php index a2e89133..a148ec20 100644 --- a/app/Group/Actions/ListAction.php +++ b/app/Membership/Actions/MassListAction.php @@ -1,6 +1,6 @@ put('menu', 'group'); - session()->put('title', 'Gruppen'); + session()->put('menu', 'activity'); + session()->put('title', 'Mitgliedschaften zuweisen'); $activities = Activity::with('subactivities')->get(); return Inertia::render('group/Index', [ diff --git a/app/Membership/Actions/StoreForGroupAction.php b/app/Membership/Actions/MassStoreAction.php similarity index 99% rename from app/Membership/Actions/StoreForGroupAction.php rename to app/Membership/Actions/MassStoreAction.php index 37316eee..b5824bc8 100644 --- a/app/Membership/Actions/StoreForGroupAction.php +++ b/app/Membership/Actions/MassStoreAction.php @@ -14,7 +14,7 @@ use Illuminate\Support\Facades\DB; use Lorisleiva\Actions\ActionRequest; use Lorisleiva\Actions\Concerns\AsAction; -class StoreForGroupAction +class MassStoreAction { use AsAction; use TracksJob; diff --git a/resources/js/layouts/AppLayout.vue b/resources/js/layouts/AppLayout.vue index 12d3308e..1ba4fcb8 100644 --- a/resources/js/layouts/AppLayout.vue +++ b/resources/js/layouts/AppLayout.vue @@ -2,11 +2,13 @@ -
+ }" + >
Dashboard Mitglieder @@ -14,7 +16,6 @@ Rechnungen Zuschüsse Tätigkeiten - Gruppen Mail-Verteiler
@@ -31,7 +32,7 @@