mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
DSC-1111 These 2 changes with the finish emit is needed, else when changing logo and then editing a field we do not get the notification and the navigateToHomePage
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<ds-community-form [dso]="(dsoRD$ | async)?.payload"
|
||||
(submitForm)="onSubmit($event)"
|
||||
(back)="navigateToHomePage()"
|
||||
(finish)="returnToEdit()"></ds-community-form>
|
||||
(finish)="navigateToHomePage()"></ds-community-form>
|
||||
|
||||
|
@@ -93,6 +93,12 @@ export class ComColFormComponent<T extends Collection | Community> implements On
|
||||
*/
|
||||
@Output() back: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
/**
|
||||
* Event emitted on finish
|
||||
*/
|
||||
@Output() finish: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
|
||||
/**
|
||||
* Observable keeping track whether the uploader has finished initializing
|
||||
* Used to start rendering the uploader component
|
||||
@@ -199,6 +205,8 @@ export class ComColFormComponent<T extends Collection | Community> implements On
|
||||
dso: updatedDSO,
|
||||
operations: operations,
|
||||
});
|
||||
|
||||
this.finish.emit();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user