mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 12:33:07 +00:00
Merge branch 'master' into configurable_entities
Conflicts: src/app/+collection-page/collection-page.component.ts src/app/+item-page/full/full-item-page.component.ts src/app/+item-page/simple/item-page.component.ts src/app/+search-page/search-filters/search-filter/search-filter.service.spec.ts src/app/+search-page/search-filters/search-filter/search-filter.service.ts src/app/+search-page/search-page.component.spec.ts src/app/+search-page/search-page.component.ts src/app/+search-page/search-results/search-results.component.spec.ts src/app/+search-page/search-results/search-results.component.ts src/app/+search-page/search-service/search-configuration.service.spec.ts src/app/+search-page/search-service/search-configuration.service.ts src/app/+search-page/search-service/search.service.ts src/app/core/cache/builders/remote-data-build.service.spec.ts src/app/core/cache/builders/remote-data-build.service.ts src/app/core/data/data.service.ts src/app/core/metadata/metadata.service.ts src/app/core/shared/item.model.ts src/app/core/shared/operators.ts src/app/shared/loading/loading.component.ts src/app/shared/object-collection/object-collection.component.ts src/app/shared/object-list/item-list-element/item-list-element.component.spec.ts src/app/shared/object-list/search-result-list-element/item-search-result/item-search-result-list-element.component.spec.ts src/app/shared/services/route.service.spec.ts src/app/shared/services/route.service.ts src/app/shared/shared.module.ts src/app/shared/testing/hal-endpoint-service-stub.ts src/app/shared/testing/search-service-stub.ts yarn.lock
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
|
||||
import {map} from 'rxjs/operators';
|
||||
import { Component, EventEmitter,
|
||||
Input,
|
||||
OnInit,
|
||||
Output, SimpleChanges, OnChanges, ChangeDetectorRef } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { RemoteData } from '../../core/data/remote-data';
|
||||
import { PageInfo } from '../../core/shared/page-info.model';
|
||||
@@ -88,11 +90,11 @@ export class ObjectCollectionComponent implements OnChanges, OnInit {
|
||||
}
|
||||
|
||||
getViewMode(): SetViewMode {
|
||||
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