mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Missing csvfile args
This commit is contained in:
parent
eac74aacde
commit
3036a03aa6
1 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
@submit.prevent="onSubmit"
|
@submit.prevent="onSubmit"
|
||||||
>
|
>
|
||||||
<!-- CSV FILE -->
|
<!-- CSV FILE -->
|
||||||
<form-field v-bind="fields.csv" v-model="form.csv" :validation="$v.form.csv" />
|
<form-field v-bind="fields.csvfile" v-model="form.csvfile" :validation="$v.form.csvfile" />
|
||||||
|
|
||||||
<!-- UPDATE -->
|
<!-- UPDATE -->
|
||||||
<form-field v-bind="fields.update" v-model="form.update" />
|
<form-field v-bind="fields.update" v-model="form.update" />
|
||||||
|
@ -28,7 +28,7 @@ export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
form: {
|
form: {
|
||||||
csv: '',
|
csvfile: '',
|
||||||
update: false,
|
update: false,
|
||||||
delete: false
|
delete: false
|
||||||
},
|
},
|
||||||
|
@ -36,12 +36,12 @@ export default {
|
||||||
serverError: '',
|
serverError: '',
|
||||||
|
|
||||||
fields: {
|
fields: {
|
||||||
csv: {
|
csvfile: {
|
||||||
label: this.$i18n.t('users_import_csv_file'),
|
label: this.$i18n.t('users_import_csv_file'),
|
||||||
description: this.$i18n.t('users_import_csv_file_desc'),
|
description: this.$i18n.t('users_import_csv_file_desc'),
|
||||||
component: 'FileItem',
|
component: 'FileItem',
|
||||||
props: {
|
props: {
|
||||||
id: 'csv',
|
id: 'csvfile',
|
||||||
placeholder: this.$i18n.t('placeholder.file')
|
placeholder: this.$i18n.t('placeholder.file')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -69,7 +69,7 @@ export default {
|
||||||
|
|
||||||
validations: {
|
validations: {
|
||||||
form: {
|
form: {
|
||||||
csv: { required, fileMediaTypeMatch: fileMediaTypeMatch('text/csv') }
|
csvfile: { required, fileMediaTypeMatch: fileMediaTypeMatch('text/csv') }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue