mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-29 13:03:11 +00:00
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:
1 parent
b74868bfb3
commit
a7a5005e8d
8 files changed
+39
-26
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user