parent
76a01f9f47
commit
23942224d4
2 changed files with 13 additions and 2 deletions
|
@ -474,7 +474,7 @@ export default {
|
||||||
this.hasPrevPage = true
|
this.hasPrevPage = true
|
||||||
}
|
}
|
||||||
|
|
||||||
newQuery.order = 'desc'
|
newQuery.order = newQuery.order || 'desc'
|
||||||
this.setQuery(
|
this.setQuery(
|
||||||
{
|
{
|
||||||
...newQuery,
|
...newQuery,
|
||||||
|
|
|
@ -99,6 +99,17 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="order-container">
|
||||||
|
<label for="order">Order</label>
|
||||||
|
<select id="order"
|
||||||
|
name="order"
|
||||||
|
v-model="newFilter.order"
|
||||||
|
:disabled="disabled">
|
||||||
|
<option value="asc">Oldest points first</option>
|
||||||
|
<option value="desc">Newest points first</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="resolution-container">
|
<div class="resolution-container">
|
||||||
<label for="resolution">
|
<label for="resolution">
|
||||||
<p class="title">
|
<p class="title">
|
||||||
|
@ -239,7 +250,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.$emit('refresh', this.newFilter)
|
this.$emit('refresh', new LocationQuery(this.newFilter))
|
||||||
if (this.newResolution !== this.resolution) {
|
if (this.newResolution !== this.resolution) {
|
||||||
this.$emit('set-resolution', this.newResolution)
|
this.$emit('set-resolution', this.newResolution)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue