Fix: Clear editor after saving new transaction

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-02-01 12:55:12 +01:00
parent 55fddea5a2
commit b41b3ea2fd
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -124,6 +124,21 @@ export default {
.then(() => {
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() {