add query arguments for filters

This commit is contained in:
2023-05-01 19:35:28 +02:00
parent fd6ad61923
commit 50759f129c
2 changed files with 125 additions and 33 deletions
+5 -8
View File
@@ -82,16 +82,13 @@ export default defineComponent({
}
},
watch: {
players: {
handler (newval: { [key: string]: Player }): void {
if (!newval) return
this.sortingData.direction *= -1
},
immediate: true
},
playerHighlighted (newval) {
console.log('newVal')
const newElement = this.$refs['player:' + newval] as HTMLElement[]
if (newElement && newElement[0]) { newElement[0].scrollIntoView({ behavior: 'smooth', block: 'center' }) }
// Some hack because of some inconsistency
setTimeout(function () {
if (newElement && newElement[0]) { newElement[0].scrollIntoView({ behavior: 'smooth', block: 'center' }) }
}, 0)
}
},
updated () {