summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/follow-button.vue8
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
});