Skip to content
Snippets Groups Projects
Commit 327ffd34 authored by syuilo's avatar syuilo
Browse files

Resolve #4321

parent 40276d7f
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ common:
signout: "ログアウト"
reload-to-apply-the-setting: "この設定を反映するにはページをリロードする必要があります。今すぐリロードしますか?"
fetching-as-ap-object: "連合に照会中"
unfollow-confirm: "{name}さんをフォロー解除しますか?"
got-it: "わかった"
customization-tips:
......
......@@ -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
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment