James Cole
2022-10-31 20:12:19 +01:00
parent 21d4b396cc
commit e7e3370baa

View File

@@ -22,7 +22,7 @@
<div class="form-group" <div class="form-group"
v-bind:class="{ 'has-error': hasError()}"> v-bind:class="{ 'has-error': hasError()}">
<div class="col-sm-12 text-sm"> <div class="col-sm-12 text-sm">
{{ $t('firefly.tags') }} {{ $t('firefly.tags') }} XX
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<div class="input-group"> <div class="input-group">
@@ -74,18 +74,22 @@ export default {
}, },
methods: { methods: {
update(newTags) { update(newTags) {
console.log('update', newTags);
this.autocompleteItems = []; this.autocompleteItems = [];
this.tags = newTags; this.tags = newTags;
this.$emit('input', this.tags); this.$emit('input', this.tags);
}, },
clearTags() { clearTags() {
console.log('clearTags');
this.tags = []; this.tags = [];
this.$emit('input', this.tags);
}, },
hasError: function () { hasError: function () {
return this.error.length > 0; return this.error.length > 0;
}, },
initItems() { initItems() {
// console.log('Now in initItems'); console.log('Now in initItems');
if (this.tag.length < 2) { if (this.tag.length < 2) {
return; return;
} }