forked from Mirrors/elk
fix: hide block self domain
This commit is contained in:
parent
efc3c3b209
commit
5ad1d7e2a5
1 changed files with 12 additions and 10 deletions
|
@ -72,16 +72,18 @@ const toggleBlockDomain = async () => {
|
|||
Unblock @{{ account.acct }}
|
||||
</CommonDropdownItem>
|
||||
|
||||
<CommonDropdownItem
|
||||
v-if="!relationship?.domainBlocking"
|
||||
icon="i-ri:shut-down-line"
|
||||
@click="toggleBlockDomain"
|
||||
>
|
||||
Block domain {{ getServerName(account) }}
|
||||
</CommonDropdownItem>
|
||||
<CommonDropdownItem v-else icon="i-ri:restart-line" @click="toggleBlockDomain">
|
||||
Unblock domain {{ getServerName(account) }}
|
||||
</CommonDropdownItem>
|
||||
<template v-if="getServerName(account) !== currentServer">
|
||||
<CommonDropdownItem
|
||||
v-if="!relationship?.domainBlocking"
|
||||
icon="i-ri:shut-down-line"
|
||||
@click="toggleBlockDomain"
|
||||
>
|
||||
Block domain {{ getServerName(account) }}
|
||||
</CommonDropdownItem>
|
||||
<CommonDropdownItem v-else icon="i-ri:restart-line" @click="toggleBlockDomain">
|
||||
Unblock domain {{ getServerName(account) }}
|
||||
</CommonDropdownItem>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<template v-else>
|
||||
|
|
Loading…
Reference in a new issue