From 327ffd3498144d239032618a4529bc86ff1cbb1f Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 4 Jul 2019 20:39:33 +0900 Subject: Resolve #4321 --- src/client/app/common/views/components/follow-button.vue | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/client/app/common/views/components/follow-button.vue b/src/client/app/common/views/components/follow-button.vue index cae6067635..17282cf8f0 100644 --- a/src/client/app/common/views/components/follow-button.vue +++ b/src/client/app/common/views/components/follow-button.vue @@ -92,6 +92,14 @@ export default Vue.extend({ try { if (this.isFollowing) { + const canceled = await this.$root.dialog({ + type: 'warning', + text: this.$t('@.unfollow-confirm', { name: user.name || user.username }), + showCancelButton: true + }); + + if (canceled) return; + await this.$root.api('following/delete', { userId: this.user.id }); -- cgit v1.2.3-freya