mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
65240: AoT build error fixes
This commit is contained in:
@@ -3,7 +3,6 @@ import { DynamicFormService, DynamicInputModel, DynamicTextAreaModel } from '@ng
|
||||
import { DynamicFormControlModel } from '@ng-dynamic-forms/core/src/model/dynamic-form-control.model';
|
||||
import { Collection } from '../../core/shared/collection.model';
|
||||
import { ComColFormComponent } from '../../shared/comcol-forms/comcol-form/comcol-form.component';
|
||||
import { NormalizedCollection } from '../../core/cache/models/normalized-collection.model';
|
||||
import { Location } from '@angular/common';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { NotificationsService } from '../../shared/notifications/notifications.service';
|
||||
@@ -27,7 +26,7 @@ export class CollectionFormComponent extends ComColFormComponent<Collection> {
|
||||
/**
|
||||
* @type {Collection.type} This is a collection-type form
|
||||
*/
|
||||
protected type = Collection.type;
|
||||
type = Collection.type;
|
||||
|
||||
/**
|
||||
* The dynamic form fields used for creating/editing a collection
|
||||
|
@@ -12,7 +12,7 @@ import { getCollectionPageRoute } from '../collection-page-routing.module';
|
||||
templateUrl: '../../shared/comcol-forms/edit-comcol-page/edit-comcol-page.component.html'
|
||||
})
|
||||
export class EditCollectionPageComponent extends EditComColPageComponent<Collection> {
|
||||
protected type = 'collection';
|
||||
type = 'collection';
|
||||
|
||||
public constructor(
|
||||
protected router: Router,
|
||||
|
@@ -27,7 +27,7 @@ export class CommunityFormComponent extends ComColFormComponent<Community> {
|
||||
/**
|
||||
* @type {Community.type} This is a community-type form
|
||||
*/
|
||||
protected type = Community.type;
|
||||
type = Community.type;
|
||||
|
||||
/**
|
||||
* The dynamic form fields used for creating/editing a community
|
||||
|
@@ -12,7 +12,7 @@ import { getCommunityPageRoute } from '../community-page-routing.module';
|
||||
templateUrl: '../../shared/comcol-forms/edit-comcol-page/edit-comcol-page.component.html'
|
||||
})
|
||||
export class EditCommunityPageComponent extends EditComColPageComponent<Community> {
|
||||
protected type = 'community';
|
||||
type = 'community';
|
||||
|
||||
public constructor(
|
||||
protected router: Router,
|
||||
|
@@ -47,7 +47,7 @@ export class ComColFormComponent<T extends DSpaceObject> implements OnInit, OnDe
|
||||
/**
|
||||
* Type of DSpaceObject that the form represents
|
||||
*/
|
||||
protected type: ResourceType;
|
||||
type: ResourceType;
|
||||
|
||||
/**
|
||||
* @type {string} Key prefix used to generate form labels
|
||||
@@ -95,7 +95,7 @@ export class ComColFormComponent<T extends DSpaceObject> implements OnInit, OnDe
|
||||
* Observable keeping track whether or not the uploader has finished initializing
|
||||
* Used to start rendering the uploader component
|
||||
*/
|
||||
private initializedUploaderOptions = new BehaviorSubject(false);
|
||||
initializedUploaderOptions = new BehaviorSubject(false);
|
||||
|
||||
/**
|
||||
* Array to track all subscriptions and unsubscribe them onDestroy
|
||||
|
@@ -19,7 +19,7 @@ export class EditComColPageComponent<TDomain extends DSpaceObject> implements On
|
||||
/**
|
||||
* The type of DSpaceObject (used to create i18n messages)
|
||||
*/
|
||||
protected type: string;
|
||||
public type: string;
|
||||
|
||||
/**
|
||||
* The current page outlet string
|
||||
|
@@ -64,12 +64,12 @@ describe('Chips component', () => {
|
||||
template: ``
|
||||
})
|
||||
class TestComponent {
|
||||
public uploadFilesOptions: UploaderOptions = {
|
||||
public uploadFilesOptions: UploaderOptions = Object.assign(new UploaderOptions(), {
|
||||
url: 'http://test',
|
||||
authToken: null,
|
||||
disableMultipart: false,
|
||||
itemAlias: null
|
||||
};
|
||||
});
|
||||
|
||||
/* tslint:disable:no-empty */
|
||||
public onBeforeUpload = () => {
|
||||
|
@@ -28,6 +28,7 @@ import { SubmissionJsonPatchOperationsServiceStub } from '../../../shared/testin
|
||||
import { SubmissionJsonPatchOperationsService } from '../../../core/submission/submission-json-patch-operations.service';
|
||||
import { SharedModule } from '../../../shared/shared.module';
|
||||
import { createTestComponent } from '../../../shared/testing/utils';
|
||||
import { UploaderOptions } from '../../../shared/uploader/uploader-options.model';
|
||||
|
||||
describe('SubmissionUploadFilesComponent Component', () => {
|
||||
|
||||
@@ -112,12 +113,12 @@ describe('SubmissionUploadFilesComponent Component', () => {
|
||||
comp.submissionId = submissionId;
|
||||
comp.collectionId = collectionId;
|
||||
comp.sectionId = 'upload';
|
||||
comp.uploadFilesOptions = {
|
||||
comp.uploadFilesOptions = Object.assign(new UploaderOptions(),{
|
||||
url: '',
|
||||
authToken: null,
|
||||
disableMultipart: false,
|
||||
itemAlias: null
|
||||
};
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
@@ -208,11 +209,11 @@ class TestComponent {
|
||||
submissionId = mockSubmissionId;
|
||||
collectionId = mockSubmissionCollectionId;
|
||||
sectionId = 'upload';
|
||||
uploadFilesOptions = {
|
||||
uploadFilesOptions = Object.assign(new UploaderOptions(), {
|
||||
url: '',
|
||||
authToken: null,
|
||||
disableMultipart: false,
|
||||
itemAlias: null
|
||||
};
|
||||
});
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user