Apply bug fixes from Noteforms (#341)

* rename const emits to emit

* auth bug fixes

* refactor page meta

* fix file input empty ref

* setProperties working_form store

* add form creator to form list

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Favour Olayinka
2024-03-12 12:48:51 +01:00
committed by GitHub
parent 18afd44664
commit 478b68074d
10 changed files with 43 additions and 25 deletions

View File

@@ -14,7 +14,7 @@ export const useWorkingFormStore = defineStore('working_form', {
this.content = form
},
setProperties (properties) {
this.content.properties = properties
this.content.properties = [...properties]
},
openSettingsForField (index) {
// If field is passed, compute index
@@ -44,7 +44,7 @@ export const useWorkingFormStore = defineStore('working_form', {
this.showAddFieldSidebar = false
this.showEditFieldSidebar = false
},
reset() {
reset () {
this.content = null
this.selectedFieldIndex = null
this.showEditFieldSidebar = null