Updated Moderator and User mod menu headings to indicate whether you're only taking action for your local instance

This commit is contained in:
root committed 2023-08-24 18:46:41 -04:00
1 parent 3b39441c51
commit ebaa55b445
2 files changed
+4 -4

No files matched your search

@@ -32,7 +32,7 @@
</Button> </Button>
{#if ($profile?.user && amMod($profile.user, item.community)) || ($profile?.user && isAdmin($profile.user))} {#if ($profile?.user && amMod($profile.user, item.community)) || ($profile?.user && isAdmin($profile.user))}
<li class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400"> <li class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400">
Moderation Moderation {#if (!item.community.local) } (Instance Only) {/if}
</li> </li>
<MenuButton color="success" on:click={() => remove(item)}> <MenuButton color="success" on:click={() => remove(item)}>
<Icon src={Trash} size="16" mini /> <Icon src={Trash} size="16" mini />
@@ -44,7 +44,7 @@
</MenuButton> </MenuButton>
{#if $profile?.user && $profile.user?.local_user_view.person.id != item.creator.id} {#if $profile?.user && $profile.user?.local_user_view.person.id != item.creator.id}
<span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400"> <span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400">
User User {#if (!item.community.local) } (Instance Only) {/if}
</span> </span>
<MenuButton <MenuButton
color="dangerSecondary" color="dangerSecondary"
@@ -114,7 +114,7 @@
</Button> </Button>
{#if ($profile?.user && amMod($profile.user, item.community)) || ($profile?.user && isAdmin($profile.user))} {#if ($profile?.user && amMod($profile.user, item.community)) || ($profile?.user && isAdmin($profile.user))}
<span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400"> <span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400">
Moderation Moderation {#if (!item.community.local) } (Instance Only) {/if}
</span> </span>
<MenuButton <MenuButton
color="warning" color="warning"
@@ -156,7 +156,7 @@
</MenuButton> </MenuButton>
{#if $profile?.user && $profile.user.local_user_view.person.id != item.creator.id} {#if $profile?.user && $profile.user.local_user_view.person.id != item.creator.id}
<span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400"> <span class="px-4 py-1 my-1 text-xs text-slate-600 dark:text-zinc-400">
User User {#if (!item.community.local) } (Instance Only) {/if}
</span> </span>
<MenuButton <MenuButton
color="dangerSecondary" color="dangerSecondary"