Compare commits
7 Commits
backport/6
...
enh/dateSh
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
728616ff90 | ||
|
|
e360f4f9d9 | ||
|
|
ff14afbe11 | ||
|
|
b9d2e9c791 | ||
|
|
a1bd13d960 | ||
|
|
6d5ddd4e2c | ||
|
|
a34e8feb33 |
@@ -120,6 +120,7 @@
|
||||
:lang="lang"
|
||||
:format="format"
|
||||
:disabled="saving || !canEdit"
|
||||
:shortcuts="shortcuts"
|
||||
confirm />
|
||||
<Actions v-if="canEdit">
|
||||
<ActionButton v-if="copiedCard.duedate" icon="icon-delete" @click="removeDue()">
|
||||
@@ -299,6 +300,23 @@ export default {
|
||||
stringify: this.stringify,
|
||||
parse: this.parse,
|
||||
},
|
||||
shortcuts: [
|
||||
{
|
||||
text: 'Today',
|
||||
onClick() {
|
||||
const date = new Date()
|
||||
return date
|
||||
},
|
||||
},
|
||||
{
|
||||
text: 'Tomorrow',
|
||||
onClick() {
|
||||
const date = new Date()
|
||||
date.setTime(date.getTime() + 3600 * 1000 * 24)
|
||||
return date
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user