allow hiding the "Hide Warnings" toggle
This commit is contained in:
parent
23a35c4265
commit
73d4b05e6e
2 changed files with 15 additions and 2 deletions
|
@ -3,6 +3,7 @@ import { computed, onMounted, ref } from 'vue'
|
|||
import type {
|
||||
ConfigfulRouteDefinition,
|
||||
ListWithTags,
|
||||
ListWithWarnings,
|
||||
MediaEntry,
|
||||
ResolvedListEntries,
|
||||
} from '@goldenwere/mackenzii-types'
|
||||
|
@ -14,7 +15,9 @@ import FilterPanel from 'src/components/shared/filter-panel.vue'
|
|||
import GalleryTile from '../gallery/gallery-tile.vue'
|
||||
import ArticleTile from '../article/article-tile.vue'
|
||||
|
||||
type MediaList = ListWithTags<MediaEntry>
|
||||
type MediaList =
|
||||
& ListWithTags<MediaEntry>
|
||||
& ListWithWarnings<MediaEntry>
|
||||
|
||||
/**
|
||||
* A wrapper around {@link ResolvedListEntries} for the app's use only which adds additional fields
|
||||
|
@ -100,7 +103,7 @@ onMounted(async () => {
|
|||
v-if='ready'
|
||||
)
|
||||
.input.labeled-checkbox(
|
||||
v-if='hasWarnings'
|
||||
v-if='hasWarnings && !config.removeHideWarningsToggle'
|
||||
)
|
||||
label(
|
||||
for='warning-toggle-checkbox'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue