mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-11-28 21:18:54 +03:00
perf: debounce torrent search field (#542)
This commit is contained in:
parent
f8c3b7dc38
commit
bb76c23b98
1 changed files with 3 additions and 2 deletions
|
@ -142,6 +142,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import _ from 'lodash'
|
||||
import { mapState, mapGetters } from 'vuex'
|
||||
import { mdiTextBoxSearch, mdiChevronLeftCircle, mdiMagnify, mdiCheckboxMarked, mdiCheckboxBlankOutline, mdiSort, mdiArrowUpThin, mdiArrowDownThin } from '@mdi/js'
|
||||
import { QuickScore } from 'quick-score'
|
||||
|
@ -225,9 +226,9 @@ export default {
|
|||
get() {
|
||||
return this.dashboard.searchFilter
|
||||
},
|
||||
set(val) {
|
||||
set: _.debounce(function (val) {
|
||||
this.dashboard.searchFilter = val
|
||||
}
|
||||
}, 300)
|
||||
},
|
||||
topPagination() {
|
||||
return this.getWebuiSettings().topPagination
|
||||
|
|
Loading…
Reference in a new issue