mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-27 04:40:40 +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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import _ from 'lodash'
|
||||||
import { mapState, mapGetters } from 'vuex'
|
import { mapState, mapGetters } from 'vuex'
|
||||||
import { mdiTextBoxSearch, mdiChevronLeftCircle, mdiMagnify, mdiCheckboxMarked, mdiCheckboxBlankOutline, mdiSort, mdiArrowUpThin, mdiArrowDownThin } from '@mdi/js'
|
import { mdiTextBoxSearch, mdiChevronLeftCircle, mdiMagnify, mdiCheckboxMarked, mdiCheckboxBlankOutline, mdiSort, mdiArrowUpThin, mdiArrowDownThin } from '@mdi/js'
|
||||||
import { QuickScore } from 'quick-score'
|
import { QuickScore } from 'quick-score'
|
||||||
|
@ -225,9 +226,9 @@ export default {
|
||||||
get() {
|
get() {
|
||||||
return this.dashboard.searchFilter
|
return this.dashboard.searchFilter
|
||||||
},
|
},
|
||||||
set(val) {
|
set: _.debounce(function (val) {
|
||||||
this.dashboard.searchFilter = val
|
this.dashboard.searchFilter = val
|
||||||
}
|
}, 300)
|
||||||
},
|
},
|
||||||
topPagination() {
|
topPagination() {
|
||||||
return this.getWebuiSettings().topPagination
|
return this.getWebuiSettings().topPagination
|
||||||
|
|
Loading…
Add table
Reference in a new issue