fix: avoid cancel prompt; fixes
@@ -82,7 +82,9 @@ export class IntegrationEditPage
canDeactivate(
nextState: RouterStateSnapshot
): boolean | Observable<boolean> | Promise<boolean> {
- return this.currentFlowService.dirty$.pipe(
+ return (
+ nextState.url.endsWith('operations') ||
+ this.currentFlowService.dirty$.pipe(
switchMap(dirty => {
if (dirty) {
return from(
@@ -94,6 +96,7 @@ export class IntegrationEditPage
return of(true);
}
})
+ )
);
}
}
