feat(ui): link Get the apps from the mobile pairing dialog (#110622)

This commit is contained in:
Peter Steinberger
2026-07-18 11:46:40 +01:00
committed by GitHub
parent 9d97e10efe
commit 4a96c9da31
4 changed files with 37 additions and 0 deletions
+4
View File
@@ -1509,6 +1509,10 @@ class OpenClawShell extends OpenClawLightDomElement {
context.overlays.closeDevicePairSetup();
this.navigate("nodes");
},
onGetApps: () => {
context.overlays.closeDevicePairSetup();
this.navigate("apps");
},
})}
${onboarding && activeRoute !== "custodian"
? html`<openclaw-onboarding-memory-import
+2
View File
@@ -283,6 +283,8 @@ export const en: TranslationMap = {
adminRequired: "Administrator access is required to create setup codes.",
title: "OpenClaw mobile",
subtitle: "Scan this QR code in the mobile app to connect a new phone.",
noApp: "Don't have the app yet?",
getApps: "Get the apps",
generating: "Creating a secure setup code…",
accessTitle: "Mobile access",
fullAccess: "Full access (recommended)",
+5
View File
@@ -20,6 +20,7 @@ type DevicePairSetupProps = {
onClose: () => void;
onCopy: (setupCode: string) => void;
onManageDevices: () => void;
onGetApps: () => void;
};
export function renderDevicePairSetup(props: DevicePairSetupProps) {
@@ -40,6 +41,10 @@ export function renderDevicePairSetup(props: DevicePairSetupProps) {
<div>
<h2>${title}</h2>
<p>${description}</p>
<p class="device-pair-setup__get-apps">
${t("nodes.pairing.noApp")}
<button type="button" @click=${props.onGetApps}>${t("nodes.pairing.getApps")}</button>
</p>
</div>
<button
class="btn btn--icon btn--ghost device-pair-setup__close"
+26
View File
@@ -4672,6 +4672,32 @@ td.data-table-key-col {
line-height: 1.5;
}
.device-pair-setup__header p.device-pair-setup__get-apps {
margin-top: 2px;
font-size: 13px;
}
.device-pair-setup__get-apps button {
padding: 0;
border: 0;
background: none;
color: var(--text);
font: inherit;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 2px;
}
.device-pair-setup__get-apps button:hover {
color: var(--text-strong);
}
.device-pair-setup__get-apps button:focus-visible {
outline: none;
box-shadow: var(--focus-ring);
border-radius: 4px;
}
.device-pair-setup__phone {
display: grid;
width: 44px;