diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2019-07-04 20:39:33 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-07-04 20:39:33 +0900 |
| commit | 327ffd3498144d239032618a4529bc86ff1cbb1f (patch) | |
| tree | e0683c4bfeefc27269bb15a37788411ad949a51e /src/client/app | |
| parent | テストページ廃止 (diff) | |
| download | sharkey-327ffd3498144d239032618a4529bc86ff1cbb1f.tar.gz sharkey-327ffd3498144d239032618a4529bc86ff1cbb1f.tar.bz2 sharkey-327ffd3498144d239032618a4529bc86ff1cbb1f.zip | |
Resolve #4321
Diffstat (limited to 'src/client/app')
| -rw-r--r-- | src/client/app/common/views/components/follow-button.vue | 8 |
1 files changed, 8 insertions, 0 deletions
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 }); |