1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-22 00:08:37 +00:00

Resolve "Form view"

This commit is contained in:
Bram Wiepjes 2021-07-11 18:02:37 +00:00
parent c3af2a02b9
commit 53ffd8f9c0
128 changed files with 6474 additions and 943 deletions
web-frontend/modules/database/components/row

View file

@ -60,6 +60,9 @@
<i class="fas fa-plus add__icon"></i>
Add a file
</a>
<div v-show="touched && !valid" class="error">
{{ error }}
</div>
<UserFilesModal
v-if="!readOnly"
ref="uploadModal"
@ -95,6 +98,18 @@ export default {
getDate(value) {
return moment.utc(value).format('MMM Do YYYY [at] H:mm')
},
removeFile(...args) {
fileField.methods.removeFile.call(this, ...args)
this.touch()
},
addFiles(...args) {
fileField.methods.addFiles.call(this, ...args)
this.touch()
},
renameFile(...args) {
fileField.methods.renameFile.call(this, ...args)
this.touch()
},
},
}
</script>