Ticket 734: reset grabbed on component load instead of loadMedias action (prevent selection reset on inifinite load)
This commit is contained in:
parent
9af98e3225
commit
e78c901d21
1 changed files with 5 additions and 4 deletions
|
|
@ -111,6 +111,11 @@
|
|||
init() {
|
||||
this.offset = 0;
|
||||
this.resetInfiniteScroll();
|
||||
// * Reset selected on component load
|
||||
this.$store.commit({
|
||||
type: 'updateGrabbed',
|
||||
grabbed: []
|
||||
});
|
||||
this.loadMedias(this.$store.state);
|
||||
//set dateSorted
|
||||
this.dateSorted = false;
|
||||
|
|
@ -132,10 +137,6 @@
|
|||
}
|
||||
},
|
||||
loadMedias($state) {
|
||||
this.$store.commit({
|
||||
type: 'updateGrabbed',
|
||||
grabbed: []
|
||||
});
|
||||
if (this.offset === 0){
|
||||
this.medias = [];
|
||||
this.loader = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue