disable remote follow button until complete
This commit is contained in:
parent
3815ec7aba
commit
d2939b446d
2 changed files with 14 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.15-beta.7",
|
"version": "12.119.0-calc.15-beta.8",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
:disabled="wait"
|
:disabled="wait"
|
||||||
@click="onClick"
|
@click="onClick"
|
||||||
>
|
>
|
||||||
<template v-if="remote">
|
<!-- <template v-if="remote">
|
||||||
<span v-if="full">{{ i18n.ts.remoteFollow }}</span><i class="ph-plus-bold ph-lg"></i>
|
<span v-if="full">{{ i18n.ts.remoteFollow }}</span><i class="ph-plus-bold ph-lg"></i>
|
||||||
</template>
|
</template> -->
|
||||||
<template v-else-if="!wait">
|
<template v-if="!wait">
|
||||||
<template v-if="hasPendingFollowRequestFromYou && user.isLocked">
|
<template v-if="hasPendingFollowRequestFromYou && user.isLocked">
|
||||||
<span v-if="full">{{ i18n.ts.followRequestPending }}</span><i class="ph-hourglass-medium-bold ph-lg"></i>
|
<span v-if="full">{{ i18n.ts.followRequestPending }}</span><i class="ph-hourglass-medium-bold ph-lg"></i>
|
||||||
</template>
|
</template>
|
||||||
|
@ -74,16 +74,16 @@ async function onClick() {
|
||||||
wait = true;
|
wait = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (props.remote) {
|
// if (props.remote) {
|
||||||
os.inputText({
|
// os.inputText({
|
||||||
title: i18n.ts.remoteFollow,
|
// title: i18n.ts.remoteFollow,
|
||||||
placeholder: 'thatonecalculator@i.calckey.cloud',
|
// placeholder: 'thatonecalculator@i.calckey.cloud',
|
||||||
}).then(({ canceled, result: instance }) => {
|
// }).then(({ canceled, result: instance }) => {
|
||||||
if (canceled) return;
|
// if (canceled) return;
|
||||||
window.open(`${instance}/?authorize-follow?acct=${props.user.uri}`);
|
// window.open(`${instance}/?authorize-follow?acct=${props.user.uri}`);
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
else if (isFollowing) {
|
if (isFollowing) {
|
||||||
const { canceled } = await os.confirm({
|
const { canceled } = await os.confirm({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
text: i18n.t('unfollowConfirm', { name: props.user.name || props.user.username }),
|
text: i18n.t('unfollowConfirm', { name: props.user.name || props.user.username }),
|
||||||
|
|
Loading…
Reference in a new issue