perf: debounce torrent search field (#542)

This commit is contained in:
Tsvetomir Bonev 2022-11-16 20:38:33 +02:00 committed by GitHub
parent f8c3b7dc38
commit bb76c23b98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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