diff --git a/src/components/card/CardSidebar.vue b/src/components/card/CardSidebar.vue index 0b88fb2af..ad247a295 100644 --- a/src/components/card/CardSidebar.vue +++ b/src/components/card/CardSidebar.vue @@ -120,6 +120,7 @@ :lang="lang" :format="format" :disabled="saving || !canEdit" + :shortcuts="shortcuts" confirm /> @@ -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: {