summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/EventModuleEdit.vue
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/EventModuleEdit.vue')
-rw-r--r--webapp/src/components/EventModuleEdit.vue5
1 files changed, 4 insertions, 1 deletions
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 @@
<v-card-actions>
<v-spacer></v-spacer>
<v-btn flat @click.native="$store.commit('events/setDialog', { show : false } )">{{ $t('cancel') }}</v-btn>
+ <v-btn :color="dialog.info.id ? 'primary' : 'success'" v-show="step == 1" @click="submit" type="submit">{{ dialog.info.id ? $t('save') : $t('create') }}</v-btn>
<v-btn color="primary" v-show="step == 1" @click.native="completeStepOne()">{{ $t('continue') }}</v-btn>
<v-btn :color="dialog.info.id ? 'primary' : 'success'" v-show="step == 2" @click="submit" type="submit">{{ dialog.info.id ? $t('save') : $t('create') }}</v-btn>
- <v-btn color="primary" v-show="step == 2" @click.native="completeStepTwo()">{{ $t('continue') }}</v-btn>
+ <v-btn color="primary" v-show="step == 2 && groups.length > 0" @click.native="completeStepTwo()">{{ $t('continue') }}</v-btn>
<v-btn :color="dialog.info.id ? 'primary' : 'success'" v-show="step == 3" @click="submit" type="submit">{{ dialog.info.id ? $t('save') : $t('create') }}</v-btn>
</v-card-actions>
</v-card>