Only prevent following non-Mobilizon instances, but allow being followed
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
0b49021f8b
commit
aff1959030
@ -66,8 +66,11 @@
|
|||||||
<span class="text-sm block">{{ $t("Uploaded media size") }}</span>
|
<span class="text-sm block">{{ $t("Uploaded media size") }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-3 grid xl:grid-cols-2 gap-4" v-if="instance.hasRelay">
|
<div class="mt-3 grid xl:grid-cols-2 gap-4">
|
||||||
<div class="border bg-white p-6 shadow-md rounded-md">
|
<div
|
||||||
|
class="border bg-white p-6 shadow-md rounded-md"
|
||||||
|
v-if="instance.hasRelay"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
@click="removeInstanceFollow"
|
@click="removeInstanceFollow"
|
||||||
v-if="instance.followedStatus == InstanceFollowStatus.APPROVED"
|
v-if="instance.followedStatus == InstanceFollowStatus.APPROVED"
|
||||||
@ -90,6 +93,9 @@
|
|||||||
{{ $t("Follow instance") }}
|
{{ $t("Follow instance") }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else class="md:h-48 py-16 text-center opacity-50">
|
||||||
|
{{ $t("Only Mobilizon instances can be followed") }}
|
||||||
|
</div>
|
||||||
<div class="border bg-white p-6 shadow-md rounded-md flex flex-col gap-2">
|
<div class="border bg-white p-6 shadow-md rounded-md flex flex-col gap-2">
|
||||||
<button
|
<button
|
||||||
@click="acceptInstance"
|
@click="acceptInstance"
|
||||||
@ -110,9 +116,6 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="md:h-48 py-16 text-center opacity-50">
|
|
||||||
{{ $t("Only Mobilizon instances can be followed") }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
Loading…
Reference in New Issue
Block a user