Fix: Clear editor after saving new transaction
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
55fddea5a2
commit
b41b3ea2fd
1 changed files with 15 additions and 0 deletions
|
@ -124,6 +124,21 @@ export default {
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.$emit('editSaved')
|
this.$emit('editSaved')
|
||||||
})
|
})
|
||||||
|
.then(() => {
|
||||||
|
if (!this.edit) {
|
||||||
|
this.form = {
|
||||||
|
amount: 0,
|
||||||
|
category: '',
|
||||||
|
cleared: false,
|
||||||
|
date: new Date().toISOString()
|
||||||
|
.split('T')[0],
|
||||||
|
|
||||||
|
description: '',
|
||||||
|
payee: '',
|
||||||
|
}
|
||||||
|
this.$refs.date.focus()
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
sendCancel() {
|
sendCancel() {
|
||||||
|
|
Loading…
Reference in a new issue