mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix: file upload input not working
This commit is contained in:
@ -23,6 +23,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { uidGen } from 'common/libs/uidGen';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'BaseUploadInput',
|
name: 'BaseUploadInput',
|
||||||
props: {
|
props: {
|
||||||
@ -38,12 +40,9 @@ export default {
|
|||||||
emits: ['change', 'clear'],
|
emits: ['change', 'clear'],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
id: null
|
id: uidGen()
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted () {
|
|
||||||
this.id = this._uid;
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
clear () {
|
clear () {
|
||||||
this.$emit('clear');
|
this.$emit('clear');
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
>
|
>
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
v-else-if="inputProps().type === 'file'"
|
v-else-if="inputProps().type === 'file'"
|
||||||
:value="selectedValue"
|
:model-value="selectedValue"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="clearValue"
|
@clear="clearValue"
|
||||||
@change="filesChange($event)"
|
@change="filesChange($event)"
|
||||||
|
@ -96,7 +96,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column col-8 col-sm-12">
|
<div class="column col-8 col-sm-12">
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
:value="connection.databasePath"
|
:model-value="connection.databasePath"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="pathClear('databasePath')"
|
@clear="pathClear('databasePath')"
|
||||||
@change="pathSelection($event, 'databasePath')"
|
@change="pathSelection($event, 'databasePath')"
|
||||||
@ -211,7 +211,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column col-8 col-sm-12">
|
<div class="column col-8 col-sm-12">
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
:value="connection.key"
|
:model-value="connection.key"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="pathClear('key')"
|
@clear="pathClear('key')"
|
||||||
@change="pathSelection($event, 'key')"
|
@change="pathSelection($event, 'key')"
|
||||||
@ -224,7 +224,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column col-8 col-sm-12">
|
<div class="column col-8 col-sm-12">
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
:value="connection.cert"
|
:model-value="connection.cert"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="pathClear('cert')"
|
@clear="pathClear('cert')"
|
||||||
@change="pathSelection($event, 'cert')"
|
@change="pathSelection($event, 'cert')"
|
||||||
@ -237,7 +237,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column col-8 col-sm-12">
|
<div class="column col-8 col-sm-12">
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
:value="connection.ca"
|
:model-value="connection.ca"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="pathClear('ca')"
|
@clear="pathClear('ca')"
|
||||||
@change="pathSelection($event, 'ca')"
|
@change="pathSelection($event, 'ca')"
|
||||||
@ -342,7 +342,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column col-8 col-sm-12">
|
<div class="column col-8 col-sm-12">
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
:value="connection.sshKey"
|
:model-value="connection.sshKey"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="pathClear('sshKey')"
|
@clear="pathClear('sshKey')"
|
||||||
@change="pathSelection($event, 'sshKey')"
|
@change="pathSelection($event, 'sshKey')"
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column col-8 col-sm-12">
|
<div class="column col-8 col-sm-12">
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
:value="localConnection.databasePath"
|
:model-value="localConnection.databasePath"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="pathClear('databasePath')"
|
@clear="pathClear('databasePath')"
|
||||||
@change="pathSelection($event, 'databasePath')"
|
@change="pathSelection($event, 'databasePath')"
|
||||||
@ -207,7 +207,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column col-8 col-sm-12">
|
<div class="column col-8 col-sm-12">
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
:value="localConnection.key"
|
:model-value="localConnection.key"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="pathClear('key')"
|
@clear="pathClear('key')"
|
||||||
@change="pathSelection($event, 'key')"
|
@change="pathSelection($event, 'key')"
|
||||||
@ -220,7 +220,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column col-8 col-sm-12">
|
<div class="column col-8 col-sm-12">
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
:value="localConnection.cert"
|
:model-value="localConnection.cert"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="pathClear('cert')"
|
@clear="pathClear('cert')"
|
||||||
@change="pathSelection($event, 'cert')"
|
@change="pathSelection($event, 'cert')"
|
||||||
@ -233,7 +233,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column col-8 col-sm-12">
|
<div class="column col-8 col-sm-12">
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
:value="localConnection.ca"
|
:model-value="localConnection.ca"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="pathClear('ca')"
|
@clear="pathClear('ca')"
|
||||||
@change="pathSelection($event, 'ca')"
|
@change="pathSelection($event, 'ca')"
|
||||||
@ -330,7 +330,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="column col-8 col-sm-12">
|
<div class="column col-8 col-sm-12">
|
||||||
<BaseUploadInput
|
<BaseUploadInput
|
||||||
:value="localConnection.sshKey"
|
:model-value="localConnection.sshKey"
|
||||||
:message="$t('word.browse')"
|
:message="$t('word.browse')"
|
||||||
@clear="pathClear('sshKey')"
|
@clear="pathClear('sshKey')"
|
||||||
@change="pathSelection($event, 'sshKey')"
|
@change="pathSelection($event, 'sshKey')"
|
||||||
|
Reference in New Issue
Block a user