# HG changeset patch # User Alexandre Segura # Date 1487761803 -3600 # Node ID 4aa67dd268ce64ca9f714093873414135d908319 # Parent db6c41f04e79d6d3eb0b8d1c0c64d1d67262b062 Fix TagList when changing annotation, collapse tags on change. diff -r db6c41f04e79 -r 4aa67dd268ce src_js/iconolab-bundle/src/components/tagform/ColorButtons.vue --- a/src_js/iconolab-bundle/src/components/tagform/ColorButtons.vue Wed Feb 22 12:02:29 2017 +0100 +++ b/src_js/iconolab-bundle/src/components/tagform/ColorButtons.vue Wed Feb 22 12:10:03 2017 +0100 @@ -25,7 +25,13 @@ data() { return { - value: null, + value: this.originalValue, + } + }, + + watch: { + originalValue: function(originalValue) { + this.value = originalValue; } }, diff -r db6c41f04e79 -r 4aa67dd268ce src_js/iconolab-bundle/src/components/tagform/TagList.vue --- a/src_js/iconolab-bundle/src/components/tagform/TagList.vue Wed Feb 22 12:02:29 2017 +0100 +++ b/src_js/iconolab-bundle/src/components/tagform/TagList.vue Wed Feb 22 12:10:03 2017 +0100 @@ -40,6 +40,7 @@ watch: { originalTags: function(originalTags) { this.tags = _.cloneDeep(this.originalTags); + this.hideAll(); }, tags: function(tags) { this.$emit('change', { tags: tags });