Better "follow" button behavior
1 unresolved thread
1 unresolved thread
Closes #133 (closed)
- Button now becomes disabled when follow request is in progress and until confirmed.
- Shows "Request sent!" for locked accounts, allows for re-sending it again
- Tooltips for different states
- tooltip for "Following!" telling that clicking it would unfollow,
- tooltip for "Request sent!" telling that clicking will send follow request again
- Checks if response contains
following: true
and does delayed user fetching if it's not.- Up to 3 attempts to re-fetch user data until it becomes
following: true
with 500ms interval between each - If still unconfirmed after 3 attempts - does same thing as with locked accounts - shows "Request sent!"
- Up to 3 attempts to re-fetch user data until it becomes
Edited by HJ
Merge request reports
Activity
mentioned in issue #180 (closed)
added 149 commits
-
ca190251...e443716b - 148 commits from branch
develop
- 9dfff107 - Merge remote-tracking branch 'upstream/develop' into async_follow
-
ca190251...e443716b - 148 commits from branch
90 setTimeout(() => { 91 store.state.api.backendInteractor.fetchUser({ id: this.user.id }) 92 .then((user) => store.commit('addNewUsers', [user])) 93 .then(() => resolve(this.user.following)) 94 .catch((e) => reject(e)) 95 }, 500) 96 }).then((confirmed) => { 97 if (!confirmed && attemptsLeft > 0) { 98 attemptsLeft-- 99 return fetchUser() 100 } else if (confirmed) { 101 return true 102 } else { 103 return false 104 } 105 }) added 65 commits
-
9dfff107...5b6c1aa9 - 63 commits from branch
develop
- d7973b0b - Merge remote-tracking branch 'upstream/develop' into async_follow
- 13fbef45 - slightly changed the code to have less mutations, added comments
-
9dfff107...5b6c1aa9 - 63 commits from branch
mentioned in commit 4b30ce64
Please register or sign in to reply