Compare commits
1 Commits
enh/dateSh
...
enh/ToastU
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d72435209 |
@@ -120,7 +120,6 @@
|
|||||||
: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()">
|
||||||
@@ -300,23 +299,6 @@ 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: {
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ import { mapGetters, mapState } from 'vuex'
|
|||||||
import axios from '@nextcloud/axios'
|
import axios from '@nextcloud/axios'
|
||||||
import { generateUrl } from '@nextcloud/router'
|
import { generateUrl } from '@nextcloud/router'
|
||||||
import { getCurrentUser } from '@nextcloud/auth'
|
import { getCurrentUser } from '@nextcloud/auth'
|
||||||
|
import { showUndo } from '@nextcloud/dialogs'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CardMenu',
|
name: 'CardMenu',
|
||||||
@@ -129,6 +130,7 @@ export default {
|
|||||||
},
|
},
|
||||||
deleteCard() {
|
deleteCard() {
|
||||||
this.$store.dispatch('deleteCard', this.card)
|
this.$store.dispatch('deleteCard', this.card)
|
||||||
|
showUndo('undo', this.$store.dispatch('cardUndoDelete', this.card))
|
||||||
},
|
},
|
||||||
archiveUnarchiveCard() {
|
archiveUnarchiveCard() {
|
||||||
this.$store.dispatch('archiveUnarchiveCard', { ...this.card, archived: !this.card.archived })
|
this.$store.dispatch('archiveUnarchiveCard', { ...this.card, archived: !this.card.archived })
|
||||||
|
|||||||
Reference in New Issue
Block a user