mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix FileItem to work with validation
(cherry picked from commit aa5e276cd18a40e8cb190967c609645343702e2e)
This commit is contained in:
parent
58fe9a6924
commit
ada9a8d0b8
1 changed files with 5 additions and 3 deletions
|
@ -5,19 +5,21 @@
|
|||
v-on="$listeners"
|
||||
:placeholder="placeholder"
|
||||
:drop-placeholder="dropPlaceholder"
|
||||
:state="Boolean(file)"
|
||||
:state="state"
|
||||
:required="required"
|
||||
:accept="accept"
|
||||
@blur="$parent.$emit('touch', name)"
|
||||
:browse-text="$t('words.browse')"
|
||||
@focusout.native="$parent.$emit('touch', name)"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'FileItem',
|
||||
|
||||
data () {
|
||||
return { file: null }
|
||||
},
|
||||
|
||||
props: {
|
||||
id: { type: String, default: null },
|
||||
placeholder: { type: String, default: null },
|
||||
|
|
Loading…
Reference in a new issue