mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 20:13:07 +00:00
intermediate commit
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
|
||||
import {map} from 'rxjs/operators';
|
||||
import { Component, EventEmitter,
|
||||
Input,
|
||||
OnInit,
|
||||
@@ -88,11 +90,11 @@ export class ObjectCollectionComponent implements OnChanges, OnInit {
|
||||
}
|
||||
|
||||
getViewMode(): ViewMode {
|
||||
this.route.queryParams.map((params) => {
|
||||
this.route.queryParams.pipe(map((params) => {
|
||||
if (isNotEmpty(params.view) && hasValue(params.view)) {
|
||||
this.currentMode = params.view;
|
||||
}
|
||||
});
|
||||
}));
|
||||
return this.currentMode;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user