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:
Mattia Vianelli
2024-02-19 12:05:05 +01:00
parent 0b3536de8c
commit ea1a8db8e9
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<ds-community-form [dso]="(dsoRD$ | async)?.payload" <ds-community-form [dso]="(dsoRD$ | async)?.payload"
(submitForm)="onSubmit($event)" (submitForm)="onSubmit($event)"
(back)="navigateToHomePage()" (back)="navigateToHomePage()"
(finish)="returnToEdit()"></ds-community-form> (finish)="navigateToHomePage()"></ds-community-form>

View File

@@ -93,6 +93,12 @@ export class ComColFormComponent<T extends Collection | Community> implements On
*/ */
@Output() back: EventEmitter<any> = new EventEmitter(); @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 * Observable keeping track whether the uploader has finished initializing
* Used to start rendering the uploader component * Used to start rendering the uploader component
@@ -199,6 +205,8 @@ export class ComColFormComponent<T extends Collection | Community> implements On
dso: updatedDSO, dso: updatedDSO,
operations: operations, operations: operations,
}); });
this.finish.emit();
} }
/** /**