Move to page one if changing query parameters

This commit is contained in:
Sol Fisher Romanoff 2022-11-14 19:20:40 +02:00
parent 6c73f448a3
commit 86f0d09276
Signed by: nbsp
GPG Key ID: 9D3F2B64F2341B62
2 changed files with 8 additions and 1 deletions

View File

@ -61,6 +61,7 @@ const UsersTab = {
this.accountType[type] = true
}
this.page = 1
this.query()
},
setStatus (status = false) {
@ -69,6 +70,7 @@ const UsersTab = {
this.status[status] = true
}
this.page = 1
this.query()
},
setActorType (type = false) {
@ -77,6 +79,11 @@ const UsersTab = {
this.actorType[type] = true
}
this.page = 1
this.query()
},
search () {
this.page = 1
this.query()
},
prevPage () {

View File

@ -15,7 +15,7 @@
v-model="searchTerm"
class="search-input"
:placeholder="$t('nav.search')"
@keyup.enter="query()"
@keyup.enter="search()"
/>
</div>
<Popover