filter
This commit is contained in:
1 parent
bb4ddf3f36
commit
0ce91bd0e5
6 files changed
+57
-18
No files matched your search
@@ -48,10 +48,6 @@ async function load() {
|
||||
await fetch()
|
||||
}
|
||||
|
||||
// async function onSearch() {
|
||||
// await updatePage(1)
|
||||
// }
|
||||
|
||||
function syncQuery() {
|
||||
const query: Record<string, string> = { page: String(page.value) }
|
||||
|
||||
@@ -90,6 +86,12 @@ async function updatePage(val: number) {
|
||||
await load()
|
||||
}
|
||||
|
||||
async function onTextChanged(value: string | null) {
|
||||
text.value = value
|
||||
page.value = 1
|
||||
await load()
|
||||
}
|
||||
|
||||
function close() {
|
||||
selected.value = []
|
||||
}
|
||||
@@ -151,7 +153,7 @@ async function onDeleteBatch() {
|
||||
<div class="d-flex flex-column ga-2">
|
||||
<div class="u-grid ga-1">
|
||||
<div class="u-height">
|
||||
<issue-filter class="mb-2" />
|
||||
<issue-filter class="mb-2" :text="text" @update:text="onTextChanged" />
|
||||
<v-list class="pa-0" density="compact" v-model:selected="selected" mandatory>
|
||||
<v-list-item>
|
||||
<template #prepend>
|
||||
|
||||
Reference in new issue
Block a user