mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +00:00
54472: AoT build error fixes
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import { CommunityFormComponent } from './community-form.component';
|
|
||||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
import { SharedModule } from '../../shared/shared.module';
|
import { SharedModule } from '../../shared/shared.module';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
@@ -7,6 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing';
|
|||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { DebugElement } from '@angular/core';
|
import { DebugElement } from '@angular/core';
|
||||||
import { CollectionFormComponent } from './collection-form.component';
|
import { CollectionFormComponent } from './collection-form.component';
|
||||||
|
import { Location } from '@angular/common';
|
||||||
|
|
||||||
describe('CommunityFormComponent', () => {
|
describe('CommunityFormComponent', () => {
|
||||||
let comp: CollectionFormComponent;
|
let comp: CollectionFormComponent;
|
||||||
|
@@ -20,9 +20,9 @@ import { RemoteData } from '../../core/data/remote-data';
|
|||||||
})
|
})
|
||||||
export class CreateCollectionPageComponent {
|
export class CreateCollectionPageComponent {
|
||||||
|
|
||||||
private error$: Observable<ErrorResponse>;
|
public error$: Observable<ErrorResponse>;
|
||||||
private parentUUID$: Observable<string>;
|
public parentUUID$: Observable<string>;
|
||||||
private communityRDObs: Observable<RemoteData<Community>>;
|
public communityRDObs: Observable<RemoteData<Community>>;
|
||||||
|
|
||||||
public constructor(private collectionDataService: CollectionDataService, private communityDataService: CommunityDataService, private routeService: RouteService, private router: Router) {
|
public constructor(private collectionDataService: CollectionDataService, private communityDataService: CommunityDataService, private routeService: RouteService, private router: Router) {
|
||||||
this.parentUUID$ = this.routeService.getQueryParameterValue('parent');
|
this.parentUUID$ = this.routeService.getQueryParameterValue('parent');
|
||||||
|
@@ -6,6 +6,7 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
import { By } from '@angular/platform-browser';
|
import { By } from '@angular/platform-browser';
|
||||||
import { DebugElement } from '@angular/core';
|
import { DebugElement } from '@angular/core';
|
||||||
|
import { Location } from '@angular/common';
|
||||||
|
|
||||||
describe('CommunityFormComponent', () => {
|
describe('CommunityFormComponent', () => {
|
||||||
let comp: CommunityFormComponent;
|
let comp: CommunityFormComponent;
|
||||||
|
@@ -18,9 +18,9 @@ import { RemoteData } from '../../core/data/remote-data';
|
|||||||
})
|
})
|
||||||
export class CreateCommunityPageComponent {
|
export class CreateCommunityPageComponent {
|
||||||
|
|
||||||
private error$: Observable<ErrorResponse>;
|
public error$: Observable<ErrorResponse>;
|
||||||
private parentUUID$: Observable<string>;
|
public parentUUID$: Observable<string>;
|
||||||
private communityRDObs: Observable<RemoteData<Community>>;
|
public communityRDObs: Observable<RemoteData<Community>>;
|
||||||
|
|
||||||
public constructor(private communityDataService: CommunityDataService, private routeService: RouteService, private router: Router) {
|
public constructor(private communityDataService: CommunityDataService, private routeService: RouteService, private router: Router) {
|
||||||
this.parentUUID$ = this.routeService.getQueryParameterValue('parent');
|
this.parentUUID$ = this.routeService.getQueryParameterValue('parent');
|
||||||
|
Reference in New Issue
Block a user