Frontend: Reset all results after search or reload #309
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
7f942598f8
commit
fd0a33ea38
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue