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

+2 -2
View File
@@ -4,8 +4,8 @@ import { ConfigViewModel } from "./config-view-model";
export function navigatingTo(args: NavigatedData): void {
const page = args.object as Page;
// Preserve the model across back-navigation (returning from the unpair page)
// so the onboarding "Continue" flow isn't lost.
// Preserve the model across back-navigation (returning from the firmware
// check page) so the onboarding "Continue" flow isn't lost.
if (!page.bindingContext) {
const context = (args.context as { onboarding?: boolean } | undefined) ?? undefined;
page.bindingContext = new ConfigViewModel({ onboarding: context?.onboarding ?? false });