mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
bugy
This commit is contained in:
1 parent
622b6ea45b
commit
8972b538ea
3 files changed
+28
-9
No files matched your search
@@ -5,7 +5,8 @@ export default {
|
||||
|
||||
methods: {
|
||||
handleKeyDown(event) {
|
||||
if (event.keyCode === 27) this.closeModal()
|
||||
// if (event.keyCode === 27) this.closeModal()
|
||||
if (event.keyCode === 27) this.visible = false
|
||||
}
|
||||
},
|
||||
}
|
||||
@@ -39,7 +39,7 @@ export default {
|
||||
|
||||
async complete() {
|
||||
try {
|
||||
const tempMastertask = {...this.mastertask, is_finished: this.mastertask.is_finished ? 0 : 1, duration: this.mastertask.duration }
|
||||
const tempMastertask = {...this.mastertask, is_finished: this.mastertask.is_finished ? 0 : 1 }
|
||||
const { mastertask } = await this.$axios.put_auth(`v1/mastertasks/${tempMastertask.id}`, tempMastertask)
|
||||
|
||||
this.visible = false
|
||||
|
||||
Reference in new issue
Block a user