From c696d05365f7df33b9f145e5f57676d95e87b8bf Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Fri, 5 Mar 2021 22:17:13 +0900 Subject: [PATCH] refs #2209 Add subscribe/unsubscribe button in account profile --- src/config/locales/en/translation.json | 8 ++- .../Contents/SideBar/AccountProfile.vue | 55 ++++++++++++++++++- .../Contents/SideBar/AccountProfile.ts | 20 +++++++ 3 files changed, 78 insertions(+), 5 deletions(-) diff --git a/src/config/locales/en/translation.json b/src/config/locales/en/translation.json index 426b89a6..259a2e0a 100644 --- a/src/config/locales/en/translation.json +++ b/src/config/locales/en/translation.json @@ -356,8 +356,10 @@ "follows_you": "Follows you", "doesnt_follow_you": "Doesn't follow you", "detail": "Detail", - "follow": "Follow", - "unfollow": "Unfollow", + "follow": "Follow this user", + "unfollow": "Unfollow this user", + "subscribe": "Subscribe this user", + "unsubscribe": "Unsubscribe this user", "follow_requested": "Follow requested", "open_in_browser": "Open in Browser", "manage_list_memberships": "Manage List Memberships", @@ -436,6 +438,8 @@ "toot_fetch_error": "Failed to fetch the toot detail", "follow_error": "Failed to follow the user", "unfollow_error": "Failed to unfollow the user", + "subscribe_error": "Failed to subscribe the user", + "unsubscribe_error": "Failed to unsubscribe the user", "lists_fetch_error": "Failed to fetch lists", "list_create_error": "Failed to create a list", "members_fetch_error": "Failed to fetch members", diff --git a/src/renderer/components/TimelineSpace/Contents/SideBar/AccountProfile.vue b/src/renderer/components/TimelineSpace/Contents/SideBar/AccountProfile.vue index ea0e3119..40d7fbad 100644 --- a/src/renderer/components/TimelineSpace/Contents/SideBar/AccountProfile.vue +++ b/src/renderer/components/TimelineSpace/Contents/SideBar/AccountProfile.vue @@ -10,12 +10,26 @@ >
-