From a20f9b4f864e475ab2b4c682e0b8be3759360d2f Mon Sep 17 00:00:00 2001 From: Boris Waaub Date: Wed, 22 May 2024 00:38:47 +0200 Subject: [PATCH] Generalize ticket actions --- .../Resources/public/vuejs/TicketApp/App.vue | 1 + .../components/ActionToolbarComponent.vue | 53 ++++++++-------- .../components/AddCommentComponent.vue | 2 +- .../components/AddresseeComponent.vue | 37 +++++------ .../components/AddresseeSelectorComponent.vue | 47 +++++++------- .../TicketApp/components/BannerComponent.vue | 61 ++++++++++++++----- .../components/MotiveSelectorComponent.vue | 23 +++++-- .../TicketHistoryCommentComponent.vue | 13 +--- .../components/TicketHistoryListComponent.vue | 18 +++--- .../TicketHistoryMotiveComponent.vue | 14 ++--- .../TicketHistoryPersonComponent.vue | 30 +++++++-- .../public/vuejs/TicketApp/i18n/messages.ts | 22 +++---- .../public/vuejs/TicketApp/store/index.ts | 15 +++-- .../store/modules/{user.ts => addressee.ts} | 0 .../vuejs/TicketApp/store/modules/ticket.ts | 15 +++++ 15 files changed, 213 insertions(+), 138 deletions(-) rename src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/store/modules/{user.ts => addressee.ts} (100%) diff --git a/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/App.vue b/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/App.vue index d75694f0d..e4fda5734 100644 --- a/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/App.vue +++ b/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/App.vue @@ -36,6 +36,7 @@ export default defineComponent({ const motives = computed(() => store.getters.getMotives as Motive[]); const ticket = computed(() => store.getters.getTicket as Ticket); + const ticketHistory = computed( () => store.getters.getDistinctAddressesHistory ); diff --git a/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/components/ActionToolbarComponent.vue b/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/components/ActionToolbarComponent.vue index c9c228dc9..30e4f83a1 100644 --- a/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/components/ActionToolbarComponent.vue +++ b/src/Bundle/ChillTicketBundle/src/Resources/public/vuejs/TicketApp/components/ActionToolbarComponent.vue @@ -11,20 +11,20 @@
    @@ -52,13 +52,13 @@ type="button" class="m-2 btn btn-light" @click=" - activeTab === 'comment' + activeTab === 'add_comment' ? (activeTab = '') - : (activeTab = 'comment') + : (activeTab = 'add_comment') " > - - {{ $t("comment.title") }} + + {{ $t("add_comment.title") }}