forked from FoundKeyGang/FoundKey
client: fix follow button getting stuck processing
If a user on a remote instances changes their profile to manually accept follow requests, this change may not immediately be federated. Because of this, a user may get stuck seeing "processing".
This commit is contained in:
parent
240ad1cca6
commit
47b2f619a6
1 changed files with 9 additions and 18 deletions
|
@ -5,26 +5,17 @@
|
||||||
:disabled="wait"
|
:disabled="wait"
|
||||||
@click="onClick"
|
@click="onClick"
|
||||||
>
|
>
|
||||||
<template v-if="!wait">
|
<template v-if="wait">
|
||||||
<template v-if="hasPendingFollowRequestFromYou && user.isLocked">
|
<span v-if="full">{{ i18n.ts.processing }}</span><i class="fas fa-spinner fa-pulse fa-fw"></i>
|
||||||
<span v-if="full">{{ i18n.ts.followRequestPending }}</span><i class="fas fa-hourglass-half"></i>
|
</template>
|
||||||
</template>
|
<template v-else-if="hasPendingFollowRequestFromYou">
|
||||||
<template v-else-if="hasPendingFollowRequestFromYou && !user.isLocked">
|
<span v-if="full">{{ i18n.ts.followRequestPending }}</span><i class="fas fa-hourglass-half"></i>
|
||||||
<!-- つまりリモートフォローの場合。 -->
|
</template>
|
||||||
<span v-if="full">{{ i18n.ts.processing }}</span><i class="fas fa-spinner fa-pulse"></i>
|
<template v-else-if="isFollowing">
|
||||||
</template>
|
<span v-if="full">{{ i18n.ts.unfollow }}</span><i class="fas fa-minus"></i>
|
||||||
<template v-else-if="isFollowing">
|
|
||||||
<span v-if="full">{{ i18n.ts.unfollow }}</span><i class="fas fa-minus"></i>
|
|
||||||
</template>
|
|
||||||
<template v-else-if="!isFollowing && user.isLocked">
|
|
||||||
<span v-if="full">{{ i18n.ts.followRequest }}</span><i class="fas fa-plus"></i>
|
|
||||||
</template>
|
|
||||||
<template v-else-if="!isFollowing && !user.isLocked">
|
|
||||||
<span v-if="full">{{ i18n.ts.follow }}</span><i class="fas fa-plus"></i>
|
|
||||||
</template>
|
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<span v-if="full">{{ i18n.ts.processing }}</span><i class="fas fa-spinner fa-pulse fa-fw"></i>
|
<span v-if="full">{{ user.isLocked ? i18n.ts.followRequest : i18n.ts.follow }}</span><i class="fas fa-plus"></i>
|
||||||
</template>
|
</template>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue