diff options
author | René Gieling <github@dartcafe.de> | 2019-12-30 01:16:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 01:16:27 +0300 |
commit | 217492e10f2a633ecd7fb3bd4b91a72df7fd3148 (patch) | |
tree | c52e898fe593ad85ce5c9bf05f48f4b982e304e3 /src/js/components/Create | |
parent | 527ecb8125e016ee599bdfbddb3d3215f70c3d9b (diff) |
renamed event to poll in the entire project (#695)
* renamed event to poll in the entire project
* Migration polls_event to polls_polls
* use timestamp
Diffstat (limited to 'src/js/components/Create')
-rw-r--r-- | src/js/components/Create/CreateDlg.vue | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/js/components/Create/CreateDlg.vue b/src/js/components/Create/CreateDlg.vue index 4330abb9..16888af4 100644 --- a/src/js/components/Create/CreateDlg.vue +++ b/src/js/components/Create/CreateDlg.vue @@ -33,7 +33,7 @@ <input id="datePoll" v-model="type" value="datePoll" :disabled="protect" type="radio" class="radio"> <label for="datePoll"> - {{ t('polls', 'Event schedule') }} + {{ t('polls', 'Poll schedule') }} </label> <input id="textPoll" v-model="type" value="textPoll" :disabled="protect" type="radio" class="radio"> @@ -47,7 +47,7 @@ {{ t('polls', 'Cancel') }} </button> <button :disabled="titleEmpty" class="button primary" @click="confirm"> - {{ t('polls', 'Publish') }} + {{ t('polls', 'Apply') }} </button> </div> </div> @@ -68,7 +68,7 @@ export default { computed: { ...mapState({ - event: state => state.event + poll: state => state.poll }), titleEmpty() { @@ -77,7 +77,7 @@ export default { }, methods: { - ...mapMutations([ 'setEventProperty', 'resetEvent', 'reset' ]), + ...mapMutations([ 'setPollProperty', 'resetPoll', 'reset' ]), cancel() { this.title = '' @@ -86,19 +86,19 @@ export default { }, confirm() { - this.resetEvent() + this.resetPoll() this.reset() - this.setEventProperty({ 'id': 0 }) - this.setEventProperty({ 'title': this.title }) - this.setEventProperty({ 'type': this.type }) - this.$store.dispatch('writeEventPromise') + this.setPollProperty({ 'id': 0 }) + this.setPollProperty({ 'title': this.title }) + this.setPollProperty({ 'type': this.type }) + this.$store.dispatch('writePollPromise') .then((response) => { this.cancel() - OC.Notification.showTemporary(t('polls', 'Poll "%n" added', 1, this.event.title), { type: 'success' }) - this.$router.push({ name: 'vote', params: { id: this.event.id } }) + OC.Notification.showTemporary(t('polls', 'Poll "%n" added', 1, this.poll.title), { type: 'success' }) + this.$router.push({ name: 'vote', params: { id: this.poll.id } }) }) .catch(() => { - OC.Notification.showTemporary(t('polls', 'Error while creating Poll "%n"', 1, this.event.title), { type: 'error' }) + OC.Notification.showTemporary(t('polls', 'Error while creating Poll "%n"', 1, this.poll.title), { type: 'error' }) }) } } |