Update zh-cn.yaml (#194)
Address #184
build assets
Update zh-cn.yaml (#194)
Former-commit-id: 4572f93371647c0a6b53cc375ec5bb00356a37c9 [formerly e58e4793ac0ca6915b605d7b2a8a77f0aec31172] [formerly 43635f6b98f546ec0e2656d26031388aef63a902 [formerly da4fd84002]]
Former-commit-id: 15422887ad29dea63bdf861d9da8f8d28b4fbc8f [formerly 3949ffa499cf999c3f4b50ee18802c0f87a23807]
Former-commit-id: fac5ceeee3fa969239d9ef5e04ef5542a61d2761
42 lines
989 B
Vue
42 lines
989 B
Vue
<template>
|
|
<div class="prompt">
|
|
<h3>{{ $t('prompts.schedule') }}</h3>
|
|
<p>{{ $t('prompts.scheduleMessage') }}</p>
|
|
<input autofocus type="datetime-local" v-model="date">
|
|
<div>
|
|
<button class="ok"
|
|
@click="submit"
|
|
:aria-label="$t('buttons.schedule')"
|
|
:title="$t('buttons.schedule')">{{ $t('buttons.schedule') }}</button>
|
|
<button class="cancel"
|
|
@click="close"
|
|
:aria-label="$t('buttons.cancel')"
|
|
:title="$t('buttons.cancel')">{{ $t('buttons.cancel') }}</button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'schedule',
|
|
data: function () {
|
|
return {
|
|
date: ''
|
|
}
|
|
},
|
|
methods: {
|
|
close () {
|
|
this.$store.commit('closeHovers')
|
|
},
|
|
submit: function (event) {
|
|
event.preventDefault()
|
|
if (this.date === '') return
|
|
this.close()
|
|
this.$store.commit('setSchedule', this.date)
|
|
document.getElementById('save-button').click()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|