.subscribe((queryParams) => {
if (queryParams.has('view')) {
// loading a saved view on /documents
- this.savedViewService
- .getCached(parseInt(queryParams.get('view')))
- .pipe(first())
- .subscribe((view) => {
- this.list.activateSavedView(view)
- this.list.reload()
- })
+ this.loadViewConfig(parseInt(queryParams.get('view')))
} else {
this.list.activateSavedView(null)
this.list.loadFromQueryParams(queryParams)
}
}
+ loadViewConfig(viewID: number) {
+ this.savedViewService
+ .getCached(viewID)
+ .pipe(first())
+ .subscribe((view) => {
+ this.list.activateSavedView(view)
+ this.list.reload()
+ })
+ }
+
saveViewConfigAs() {
let modal = this.modalService.open(SaveViewConfigDialogComponent, {
backdrop: 'static',