mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 14:54:05 +00:00
Clarify comment for conditional rendering of Tag
This commit is contained in:
parent
6832c791c4
commit
9c50d709f1
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@
|
||||||
</MonitorListFilterDropdown>
|
</MonitorListFilterDropdown>
|
||||||
<MonitorListFilterDropdown :filterActive="filterState.tags?.length > 0">
|
<MonitorListFilterDropdown :filterActive="filterState.tags?.length > 0">
|
||||||
<template #status>
|
<template #status>
|
||||||
<!-- Prevent rendering Tag component if invalid tag is passed from query params -->
|
<!-- Prevent rendering Tag component if tagsList has not been fetched or filterState contains invalid tag -->
|
||||||
<Tag
|
<Tag
|
||||||
v-if="filterState.tags?.length === 1 && tagsList.find(tag => tag.id === filterState.tags[0])"
|
v-if="filterState.tags?.length === 1 && tagsList.find(tag => tag.id === filterState.tags[0])"
|
||||||
:item="tagsList.find(tag => tag.id === filterState.tags[0])"
|
:item="tagsList.find(tag => tag.id === filterState.tags[0])"
|
||||||
|
|
Loading…
Reference in a new issue