feat: show info when saved homepage filter is ignored for label browsing
This commit is contained in:
parent
fd4f7accc3
commit
dca041459f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue