mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
fix hide search when there is 0 elements
This commit is contained in:
parent
5324e3da6c
commit
8f1f29743d
5 changed files with 5 additions and 5 deletions
|
|
@ -87,7 +87,7 @@ const infiniteItems = computed(() => {
|
|||
]
|
||||
})
|
||||
|
||||
const hideSearch = computed(() => (infiniteData.value?.pages?.[0]?.totalElements || 100) < 10)
|
||||
const hideSearch = computed(() => (infiniteData.value?.pages?.[0]?.totalElements || 0) < 10)
|
||||
|
||||
function toItemType(authorName: string): ItemType<Author> {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ const infiniteItems = computed(() => {
|
|||
]
|
||||
})
|
||||
|
||||
const hideSearch = computed(() => (infiniteData.value?.pages?.[0]?.totalElements || 100) < 10)
|
||||
const hideSearch = computed(() => (infiniteData.value?.pages?.[0]?.totalElements || 0) < 10)
|
||||
|
||||
function toItemType(value: string): ItemType<SchString> {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ const infiniteItems = computed(() => {
|
|||
]
|
||||
})
|
||||
|
||||
const hideSearch = computed(() => (infiniteData.value?.pages?.[0]?.totalElements || 100) < 10)
|
||||
const hideSearch = computed(() => (infiniteData.value?.pages?.[0]?.totalElements || 0) < 10)
|
||||
|
||||
function toItemType(value: string): ItemType<SchString> {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ const infiniteItems = computed(() => {
|
|||
]
|
||||
})
|
||||
|
||||
const hideSearch = computed(() => (infiniteData.value?.pages?.[0]?.totalElements || 100) < 10)
|
||||
const hideSearch = computed(() => (infiniteData.value?.pages?.[0]?.totalElements || 0) < 10)
|
||||
|
||||
function toItemType(value: string): ItemType<SchString> {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ const infiniteItems = computed(() => {
|
|||
]
|
||||
})
|
||||
|
||||
const hideSearch = computed(() => (infiniteData.value?.pages?.[0]?.totalElements || 100) < 10)
|
||||
const hideSearch = computed(() => (infiniteData.value?.pages?.[0]?.totalElements || 0) < 10)
|
||||
|
||||
function toItemType(value: string): ItemType<SchString> {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue