Compare commits
7 Commits
removeComm
...
enh/dateSh
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
728616ff90 | ||
|
|
e360f4f9d9 | ||
|
|
ff14afbe11 | ||
|
|
b9d2e9c791 | ||
|
|
a1bd13d960 | ||
|
|
6d5ddd4e2c | ||
|
|
a34e8feb33 |
@@ -120,6 +120,7 @@
|
|||||||
:lang="lang"
|
:lang="lang"
|
||||||
:format="format"
|
:format="format"
|
||||||
:disabled="saving || !canEdit"
|
:disabled="saving || !canEdit"
|
||||||
|
:shortcuts="shortcuts"
|
||||||
confirm />
|
confirm />
|
||||||
<Actions v-if="canEdit">
|
<Actions v-if="canEdit">
|
||||||
<ActionButton v-if="copiedCard.duedate" icon="icon-delete" @click="removeDue()">
|
<ActionButton v-if="copiedCard.duedate" icon="icon-delete" @click="removeDue()">
|
||||||
@@ -299,6 +300,23 @@ export default {
|
|||||||
stringify: this.stringify,
|
stringify: this.stringify,
|
||||||
parse: this.parse,
|
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: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user