fix: Go back to template picker if template filler closed

Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
This commit is contained in:
Elizabeth Danzberger 2024-07-30 15:30:36 -04:00
parent 6c3a4a9f20
commit 423730963d
No known key found for this signature in database
GPG key ID: 2C0EB04DAD5237F6

View file

@ -260,14 +260,13 @@ export default defineComponent({
},
async onSubmit() {
this.loading = true
if (this.selectedTemplate?.fields?.length > 0) {
spawnDialog(TemplateFiller, {
fields: this.selectedTemplate.fields,
onSubmit: this.createFile,
})
} else {
this.loading = true
await this.createFile()
}
},