From f4abb08921c41e13e08a15e2c00ef9f31e2fadf6 Mon Sep 17 00:00:00 2001 From: shibafu Date: Thu, 4 Jul 2019 22:34:28 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B7=A8=E9=9B=86=E3=83=A2=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=81=AE=E5=88=9D=E6=9C=9F=E8=A1=A8=E7=A4=BA=E6=99=82=E3=81=AB?= =?UTF-8?q?=E5=85=A5=E5=8A=9B=E6=B8=88=E3=81=BF=E3=82=BF=E3=82=B0=E3=81=8C?= =?UTF-8?q?=E5=8F=8D=E6=98=A0=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA?= =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=A7=E3=80=81=E7=8F=BE?= =?UTF-8?q?=E5=9C=A8=E3=81=AE=E3=82=BF=E3=82=B0=E3=82=92=E9=85=8D=E4=BF=A1?= =?UTF-8?q?=E3=81=95=E3=81=9B=E3=82=8B=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=82=92=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/components/MetadataPreview.vue | 1 + resources/assets/js/components/TagInput.vue | 1 + 2 files changed, 2 insertions(+) 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) {