Frontend: Reset all results after search or reload #309

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-06-28 21:51:55 +02:00
parent 7f942598f8
commit fd0a33ea38

View file

@ -261,6 +261,7 @@
Photo.search(params).then(response => {
this.results = Photo.mergeResponse(this.results, response);
this.allResults = [];
this.scrollDisabled = (response.count < count);
@ -346,6 +347,7 @@
this.offset = this.pageSize;
this.results = response.models;
this.allResults = [];
this.scrollDisabled = (response.count < this.pageSize);