mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: Template filler shows only if template has fields
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
This commit is contained in:
parent
17ff269036
commit
6c3a4a9f20
1 changed files with 1 additions and 2 deletions
|
|
@ -262,12 +262,11 @@ export default defineComponent({
|
|||
async onSubmit() {
|
||||
this.loading = true
|
||||
|
||||
if (this.selectedTemplate?.fields) {
|
||||
if (this.selectedTemplate?.fields?.length > 0) {
|
||||
spawnDialog(TemplateFiller, {
|
||||
fields: this.selectedTemplate.fields,
|
||||
onSubmit: this.createFile,
|
||||
})
|
||||
|
||||
} else {
|
||||
await this.createFile()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue