feat: show info when saved homepage filter is ignored for label browsing

This commit is contained in:
kolaente 2026-03-24 22:46:55 +01:00 committed by kolaente
parent fd4f7accc3
commit dca041459f
1 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,12 @@
<Icon icon="times" />
</BaseButton>
</Message>
<Message
v-if="savedFilterIgnored"
class="mbe-2"
>
{{ $t('task.show.savedFilterIgnored') }}
</Message>
<p
v-if="!showAll"
class="show-tasks-options"
@ -163,6 +169,12 @@ const filteredLabels = computed(() => {
.filter(label => label !== null && label !== undefined)
})
const savedFilterIgnored = computed(() => {
return filteredLabels.value.length > 0
&& filterIdUsedOnOverview.value
&& typeof projectStore.projects[filterIdUsedOnOverview.value] !== 'undefined'
})
const pageTitle = computed(() => {
// We need to define "key" because it is the first parameter in the array and we need the second
const predefinedRange = Object.entries(DATE_RANGES)