Fixed validation on navigate back on browser send add edit
This commit is contained in:
parent
4d27824064
commit
15211c73fe
|
@ -124,7 +124,10 @@ export class SendAddEditComponent extends BaseAddEditComponent {
|
||||||
|
|
||||||
cancel() {
|
cancel() {
|
||||||
// If true, the window was pop'd out on the add-send page. location.back will not work
|
// If true, the window was pop'd out on the add-send page. location.back will not work
|
||||||
if ((window as any).previousPopupUrl.startsWith("/add-send")) {
|
if (
|
||||||
|
(window as any).previousPopupUrl == null ||
|
||||||
|
!(window as any).previousPopupUrl.startsWith("/add-send")
|
||||||
|
) {
|
||||||
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
|
// FIXME: Verify that this floating promise is intentional. If it is, add an explanatory comment and ensure there is proper error handling.
|
||||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||||
this.router.navigate(["tabs/send"]);
|
this.router.navigate(["tabs/send"]);
|
||||||
|
|
Loading…
Reference in New Issue