Browse Source

Keep pager between schema switches.

pull/453/head
Sebastian 6 years ago
parent
commit
0f8fe89878
  1. 4
      frontend/app/shared/state/contents.state.ts

4
frontend/app/shared/state/contents.state.ts

@ -137,7 +137,9 @@ export abstract class ContentsStateBase extends State<Snapshot> {
public load(isReload = false): Observable<any> {
if (!isReload) {
if (this.schemaId !== this.previousId) {
this.resetState();
const contentsPager = Pager.fromLocalStore('contents', this.localStore);
this.resetState({ contentsPager });
} else {
const contentsPager = this.snapshot.contentsPager;
const contentsQuery = this.snapshot.contentsQuery;

Loading…
Cancel
Save