blob: 3644c5c6949b78d361cc9e1b3cfcc75ff7c1b36a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<template>
<label class="col-4">
<span class="required">
{{ $gettexdt('Dateipfad') }}
</span>
<input required type="text" name="path" v-model="thePath">
</label>
</template>
<script>
export default {
name: 'FileCacheConfig',
emits: ['is-valid'],
props: {
path: {
type: String,
default: ''
}
},
data () {
return {
thePath: this.path
};
},
watch: {
thePath: {
handler (current) {
this.$emit('is-valid', current.trim().length > 0);
},
immediate: true
}
}
}
</script>
|