Skip to content

Commit f5f5a2f

Browse files
authored
Merge pull request #177 from Gid733/master
Rerouting enhancement
2 parents 8012b9f + 1842ead commit f5f5a2f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

eform-client/src/app/modules/cases/components/case-edit/case-edit.component.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,15 @@ export class CaseEditComponent implements OnInit, OnDestroy {
111111
this.saveCase();
112112
} else {
113113
this.isNoSaveExitAllowed = true;
114-
this.navigateToReverse();
115114
}
116115
}
117116

118117
navigateToReverse() {
119-
if (this.reverseRoute) {
120-
this.router.navigate([this.reverseRoute]).then();
121-
} else {
122-
this.router.navigate(['/cases/', this.currentTemplate.id]).then();
123-
}
118+
if (this.reverseRoute) {
119+
this.router.navigate([this.reverseRoute]).then();
120+
} else {
121+
this.router.navigate(['/cases/', this.currentTemplate.id]).then();
122+
}
124123
}
125124

126125
canDeactivate(): Observable<boolean> | boolean {

0 commit comments

Comments
 (0)