Filter sequence list locally (fetch all sequences).

Even in the event that we have thousands of sequences
this should be acceptable and gives us more flexibility
at lower effort than paginating on the server.
This commit is contained in:
D. Berge
2020-09-01 12:33:01 +02:00
parent c8e0dc5d02
commit 276af8fcd6

View File

@@ -8,13 +8,11 @@
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-text-field <v-text-field
v-debounce:700ms="getSequences"
v-model="filter" v-model="filter"
append-icon="mdi-magnify" append-icon="mdi-magnify"
label="Filter" label="Filter"
single-line single-line
clearable clearable
@click:clear="getSequences"
hint="Filter by sequence, line, date or remarks" hint="Filter by sequence, line, date or remarks"
></v-text-field> ></v-text-field>
</v-toolbar> </v-toolbar>
@@ -26,7 +24,7 @@
:items="items" :items="items"
item-key="sequence" item-key="sequence"
:server-items-length="num_rows" :server-items-length="num_rows"
:options.sync="options" :search="filter"
:loading="loading" :loading="loading"
:fixed-header="true" :fixed-header="true"
show-expand show-expand