mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
63669: ContentSource tests pt1
This commit is contained in:
@@ -229,20 +229,22 @@ export class CollectionSourceComponent extends AbstractTrackableComponent implem
|
||||
map((updates: FieldUpdates) => updates[initialContentSource.uuid])
|
||||
);
|
||||
this.updateSub = this.update$.subscribe((update: FieldUpdate) => {
|
||||
const field = update.field as ContentSource;
|
||||
this.formGroup.patchValue({
|
||||
providerContainer: {
|
||||
provider: field.provider
|
||||
},
|
||||
setContainer: {
|
||||
set: field.set,
|
||||
format: field.format
|
||||
},
|
||||
harvestContainer: {
|
||||
harvest: field.harvest
|
||||
}
|
||||
});
|
||||
this.contentSource = cloneDeep(field);
|
||||
if (update) {
|
||||
const field = update.field as ContentSource;
|
||||
this.formGroup.patchValue({
|
||||
providerContainer: {
|
||||
provider: field.provider
|
||||
},
|
||||
setContainer: {
|
||||
set: field.set,
|
||||
format: field.format
|
||||
},
|
||||
harvestContainer: {
|
||||
harvest: field.harvest
|
||||
}
|
||||
});
|
||||
this.contentSource = cloneDeep(field);
|
||||
}
|
||||
this.switchEnableForm();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user