Skip to content

Commit

Permalink
fix: Go back to template picker if template filler closed
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
  • Loading branch information
elzody committed Jul 30, 2024
1 parent 6c3a4a9 commit 4237309
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/files/src/views/TemplatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
},
Expand Down

0 comments on commit 4237309

Please sign in to comment.