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

@@ -175,7 +175,7 @@ export default {
}
},
openFileUpload () {
if (this.disabled) return
if (this.disabled || !this.$refs['actual-input']) return
this.$refs['actual-input'].click()
},
manualFileUpload (e) {

View File

@@ -13,10 +13,10 @@ const props = defineProps({
modelValue: { type: Boolean, default: false },
disabled: { type: Boolean, default: false }
})
const emits = defineEmits(['update:modelValue'])
const emit = defineEmits(['update:modelValue'])
const onClick = () => {
if (props.disabled) return
emits('update:modelValue', !props.modelValue)
emit('update:modelValue', !props.modelValue)
}
</script>