diff --git a/resources/assets/js/components/MetadataPreview.vue b/resources/assets/js/components/MetadataPreview.vue index 7b81c8a..d814c0d 100644 --- a/resources/assets/js/components/MetadataPreview.vue +++ b/resources/assets/js/components/MetadataPreview.vue @@ -71,6 +71,7 @@ created() { bus.$on("change-tag", (tags: string[]) => this.tags = tags); + bus.$emit("resend-tag"); } addTag(tag: string) { diff --git a/resources/assets/js/components/TagInput.vue b/resources/assets/js/components/TagInput.vue index 564c088..194e827 100644 --- a/resources/assets/js/components/TagInput.vue +++ b/resources/assets/js/components/TagInput.vue @@ -31,6 +31,7 @@ created() { bus.$on("add-tag", (tag: string) => this.tags.indexOf(tag) === -1 && this.tags.push(tag)); + bus.$on("resend-tag", () => bus.$emit("change-tag", this.tags)); } onKeyDown(event: KeyboardEvent) {