summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorChristian Hofmaier2019-04-02 18:01:56 +0200
committerChristian Hofmaier2019-04-02 18:01:56 +0200
commita3f47b35f056bbb8ec9a79902ff902dbad733f8e (patch)
tree145bae30ca9f88c63442eccaef414189a07e68d1 /webapp
parent[eventmanager] remove console logs (diff)
downloadbas-a3f47b35f056bbb8ec9a79902ff902dbad733f8e.tar.gz
bas-a3f47b35f056bbb8ec9a79902ff902dbad733f8e.tar.xz
bas-a3f47b35f056bbb8ec9a79902ff902dbad733f8e.zip
[eventmanager] fix bug with german language interval type
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/components/EventModuleEdit.vue13
1 files changed, 7 insertions, 6 deletions
diff --git a/webapp/src/components/EventModuleEdit.vue b/webapp/src/components/EventModuleEdit.vue
index b41b1f5..78210e3 100644
--- a/webapp/src/components/EventModuleEdit.vue
+++ b/webapp/src/components/EventModuleEdit.vue
@@ -331,7 +331,7 @@
></v-text-field>
</v-flex>
<v-flex xs12 md5 offset-md1>
- <v-select :items="intervalTypes" :label="$t('intervalTypes')" v-model="intervalType" prepend-icon="repeat" color="primary" offset-y></v-select>
+ <v-select :items="intervalTypes" :label="$t('intervalTypes')" item-text="name" v-model="intervalType" prepend-icon="repeat" color="primary" offset-y></v-select>
</v-flex>
</v-layout>
</v-stepper-content>
@@ -448,10 +448,11 @@ export default {
if (value.type === 'edit' && value.show) {
if (this.$refs.form) this.$refs.form.resetValidation()
this.step = 1
- this.intervalTypes = []
- this.intervalTypes.push(this.$t('day'))
- this.intervalTypes.push(this.$t('week'))
- this.intervalTypes.push(this.$t('month'))
+ this.intervalTypes = [
+ { name: this.$t('day'), value: 'day' },
+ { name: this.$t('week'), value: 'week' },
+ { name: this.$t('month'), value: 'month' }
+ ]
this.stepCompleted = value.info.id ? 4 : 0
this.name = value.info.name || ''
this.description = value.info.description || ''
@@ -492,7 +493,7 @@ export default {
this.endTime = '23:59'
}
this.interval = this.times.interval || 1
- this.intervalType = this.times.intervalType || this.intervalTypes[0]
+ this.intervalType = this.times.intervalType || this.intervalTypes[0].value
this.dayMap = this.times.dayMap || [1, 1, 1, 1, 1, 1, 1]
this.monthMap = this.times.monthMap || [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]