fix: show action label (Показать/Скрыть) instead of status in inbox settings
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1520,27 +1520,20 @@ onBeforeUnmount(() => {
|
||||
</svg>
|
||||
</button>
|
||||
<div tabindex="0" class="dropdown-content z-20 mt-1 w-60 rounded-xl border border-base-300 bg-base-100 p-2 shadow-lg">
|
||||
<p class="px-1 pb-1 text-[10px] font-semibold uppercase tracking-wide text-base-content/55">Sources</p>
|
||||
<div v-if="threadInboxes(selectedCommThread).length" class="space-y-1">
|
||||
<button
|
||||
v-for="inbox in threadInboxes(selectedCommThread)"
|
||||
:key="`thread-header-inbox-setting-${inbox.id}`"
|
||||
class="btn btn-ghost btn-xs h-auto min-h-0 w-full justify-between px-2 py-1 text-left normal-case"
|
||||
class="btn btn-ghost btn-xs h-auto min-h-0 w-full justify-start gap-2 px-2 py-1.5 text-left normal-case"
|
||||
@click.stop="setInboxHidden(inbox.id, !inbox.isHidden)"
|
||||
>
|
||||
<span class="min-w-0 truncate">{{ formatInboxLabel(inbox) }}</span>
|
||||
<span class="shrink-0 text-[10px] text-base-content/70">
|
||||
{{
|
||||
isInboxToggleLoading(inbox.id)
|
||||
? "..."
|
||||
: inbox.isHidden
|
||||
? "Hidden"
|
||||
: "Visible"
|
||||
}}
|
||||
</span>
|
||||
<span v-if="isInboxToggleLoading(inbox.id)" class="loading loading-spinner loading-xs shrink-0" />
|
||||
<template v-else>
|
||||
<span class="min-w-0 truncate">{{ inbox.isHidden ? 'Показать' : 'Скрыть' }} {{ formatInboxLabel(inbox) }}</span>
|
||||
</template>
|
||||
</button>
|
||||
</div>
|
||||
<p v-else class="px-1 py-1 text-[11px] text-base-content/60">No sources.</p>
|
||||
<p v-else class="px-1 py-1 text-[11px] text-base-content/60">Нет источников</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user