@@ -101,6 +101,7 @@
|
|||||||
:lang="lang"
|
:lang="lang"
|
||||||
:formatter="format"
|
:formatter="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()">
|
||||||
@@ -176,6 +177,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: {
|
||||||
@@ -316,6 +334,10 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
.section-wrapper::v-deep .mx-datepicker-main .mx-datepicker-popup {
|
||||||
|
left: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
.section-wrapper {
|
.section-wrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user