mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-20 03:08:11 +00:00
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user