Move the "Disconnect the Even App" page to before pairing rather than after, and make some minor changes to it

This commit is contained in:
James Babcock committed 2026-08-25 21:29:06 -07:00
1 parent b74868bfb3
commit a7a5005e8d
8 files changed
+39 -26

No files matched your search

+15 -4
View File
@@ -1,4 +1,4 @@
import { Frame, Observable } from "@nativescript/core";
import { Frame, Observable, Screen } from "@nativescript/core";
import { openEvenAppSettings } from "../native/even-app-conflict";
@@ -8,7 +8,10 @@ export class OnboardingUnpairViewModel extends Observable {
}
onContinueTap(): void {
Frame.topmost()?.navigate({ moduleName: "phone-ui/onboarding-firmware-check-page" });
Frame.topmost()?.navigate({
moduleName: "phone-ui/pairing-page",
context: { onboarding: true },
});
}
onBackTap(): void {
@@ -18,9 +21,17 @@ export class OnboardingUnpairViewModel extends Observable {
return;
}
frame?.navigate({
moduleName: "phone-ui/pairing-page",
context: { onboarding: true },
moduleName: "phone-ui/onboarding-page",
context: { step: 3 },
clearHistory: true,
});
}
/**
* The settings button fills the page's width on phones but is capped so it
* doesn't stretch edge-to-edge on tablets.
*/
get settingsButtonWidth(): number {
return Math.min(320, Math.round(Screen.mainScreen.widthDIPs) - 40);
}
}