From d7ff0d5ac3698f51709be1be3decf8573ab5c02b Mon Sep 17 00:00:00 2001 From: Christian Hofmaier Date: Mon, 15 Apr 2019 16:26:00 +0000 Subject: [eventmanager] UI improvements - show IDs in table - dblclick events to open dialog - some stepper improvements - language tags --- webapp/src/components/EventModuleDelete.vue | 8 +++++--- webapp/src/components/EventModuleEdit.vue | 5 ++++- webapp/src/components/EventModuleEventList.vue | 3 ++- 3 files changed, 11 insertions(+), 5 deletions(-) (limited to 'webapp/src') diff --git a/webapp/src/components/EventModuleDelete.vue b/webapp/src/components/EventModuleDelete.vue index f22fc41..ebf1f83 100644 --- a/webapp/src/components/EventModuleDelete.vue +++ b/webapp/src/components/EventModuleDelete.vue @@ -1,10 +1,12 @@ { "en": { - "delete-are-you-sure": "Are you sure you want to delete this event? | Are you sure you want to delete these events?" + "delete-are-you-sure": "Are you sure you want to delete this event? | Are you sure you want to delete these events?", + "eventDeleteSuccess": "Event deleted successfully | Events deleted successfully" }, "de": { - "delete-are-you-sure": "Sind sie sicher, dass sie diese Veranstaltung Löschen wollen? | Sind sie sicher, dass sie diese Veranstaltungen löschen wollen?" + "delete-are-you-sure": "Sind sie sicher, dass sie diese Veranstaltung Löschen wollen? | Sind sie sicher, dass sie diese Veranstaltungen löschen wollen?", + "eventDeleteSuccess": "Event erfolgreich gelöscht | Events erfolgreich gelöscht" } } @@ -53,7 +55,7 @@ export default { } await this.$http.post('/api/events?delete', { ids: deleteIds }) this.setDialog({ show: false }) - this.$snackbar({ color: 'success', text: this.$t('eventDeleteSuccess') }) + this.$snackbar({ color: 'success', text: this.$tc('eventDeleteSuccess', [deleteIds.length]) }) this.$store.dispatch('events/loadEvents') } } diff --git a/webapp/src/components/EventModuleEdit.vue b/webapp/src/components/EventModuleEdit.vue index 025ecfb..437fc02 100644 --- a/webapp/src/components/EventModuleEdit.vue +++ b/webapp/src/components/EventModuleEdit.vue @@ -17,6 +17,7 @@ "event": "Event", "eventName": "Event Name", "eventNameEmptyError": "Event Name can't be empty!", + "eventSavedSuccess": "Event saved successfully", "february": "February", "friday": "Friday", "groups": "Groups", @@ -68,6 +69,7 @@ "event": "Veranstaltung", "eventName": "Veranstaltungsname", "eventNameEmptyError": "Der Veranstaltungsname kann nicht leer sein!", + "eventSavedSuccess": "Event erfolgreich gespeichert", "february": "Februar", "friday": "Freitag", "groups": "Gruppen", @@ -379,9 +381,10 @@ {{ $t('cancel') }} + {{ dialog.info.id ? $t('save') : $t('create') }} {{ $t('continue') }} {{ dialog.info.id ? $t('save') : $t('create') }} - {{ $t('continue') }} + {{ $t('continue') }} {{ dialog.info.id ? $t('save') : $t('create') }} diff --git a/webapp/src/components/EventModuleEventList.vue b/webapp/src/components/EventModuleEventList.vue index 1cbe233..f07b6e9 100644 --- a/webapp/src/components/EventModuleEventList.vue +++ b/webapp/src/components/EventModuleEventList.vue @@ -22,7 +22,7 @@