upgraded to angular 8

This commit is contained in:
lotte
2020-02-13 11:09:20 +01:00
parent 3bbd05f588
commit 04cb75e786
106 changed files with 1959 additions and 1417 deletions

View File

@@ -125,7 +125,7 @@ export class SubmissionSectionUploadFileEditComponent implements OnChanges {
/**
* The FormComponent reference
*/
@ViewChild('formRef') public formRef: FormComponent;
@ViewChild('formRef', {static: false}) public formRef: FormComponent;
/**
* Initialize instance variables
@@ -334,7 +334,7 @@ export class SubmissionSectionUploadFileEditComponent implements OnChanges {
});
// Due to a bug can't dynamically change the select options, so replace the model with a new one
const confGroup = { relation: groupModel.relation };
const confGroup = { relation: groupModel.relations };
const groupsConfig = Object.assign({}, BITSTREAM_FORM_ACCESS_CONDITION_GROUPS_CONFIG, confGroup);
groupsConfig.options = groupOptions;
(model.parent as DynamicFormGroupModel).group.pop();