Gate journal filters by access level
This commit is contained in:
@@ -125,9 +125,11 @@ function prevent_default<T extends Event>(fn: (event: T) => void) {
|
|||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
{#if $ae_loc.edit_mode && ($ae_loc.manager_access || $ae_loc.trusted_access)}
|
||||||
<span class="flex flex-row flex-wrap items-center gap-2">
|
<span class="flex flex-row flex-wrap items-center gap-2">
|
||||||
<span class="hidden text-sm text-gray-500 lg:inline"> Filters: </span>
|
<span class="hidden text-sm text-gray-500 lg:inline"> Filters: </span>
|
||||||
|
|
||||||
|
{#if $ae_loc.manager_access}
|
||||||
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
||||||
<span>Enabled</span>
|
<span>Enabled</span>
|
||||||
<select
|
<select
|
||||||
@@ -140,7 +142,9 @@ function prevent_default<T extends Event>(fn: (event: T) => void) {
|
|||||||
<option value="all">All</option>
|
<option value="all">All</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{#if $ae_loc.trusted_access}
|
||||||
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
<label class="flex flex-row items-center gap-1 text-xs font-semibold text-gray-500">
|
||||||
<span>Hidden</span>
|
<span>Hidden</span>
|
||||||
<select
|
<select
|
||||||
@@ -153,7 +157,9 @@ function prevent_default<T extends Event>(fn: (event: T) => void) {
|
|||||||
<option value="all">All</option>
|
<option value="all">All</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<!-- Search Control Toggles -->
|
<!-- Search Control Toggles -->
|
||||||
<span
|
<span
|
||||||
|
|||||||
Reference in New Issue
Block a user