mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-22 02:15:26 -06:00
fix(zalouser): hide unusable QR guidance
This commit is contained in:
@@ -231,6 +231,10 @@ describe("zalouser setup wizard", () => {
|
||||
expect.stringContaining("Could not write QR image file"),
|
||||
"QR Login",
|
||||
);
|
||||
expect(note).not.toHaveBeenCalledWith(
|
||||
expect.stringContaining("Scan + approve on phone, then continue."),
|
||||
"QR Login",
|
||||
);
|
||||
expect(confirmations).not.toContain("Did you scan and approve the QR on your phone?");
|
||||
expect(waitForZaloQrLoginMock).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -337,7 +337,7 @@ export const zalouserSetupWizard: ChannelSetupWizard = {
|
||||
qrPath
|
||||
? t("wizard.zalouser.qrImageSaved", { path: qrPath })
|
||||
: t("wizard.zalouser.qrImageWriteFailed"),
|
||||
t("wizard.zalouser.scanApproveContinue"),
|
||||
...(qrPath ? [t("wizard.zalouser.scanApproveContinue")] : []),
|
||||
].join("\n"),
|
||||
t("wizard.zalouser.qrLoginTitle"),
|
||||
);
|
||||
@@ -386,7 +386,7 @@ export const zalouserSetupWizard: ChannelSetupWizard = {
|
||||
qrPath
|
||||
? t("wizard.zalouser.qrImageSaved", { path: qrPath })
|
||||
: t("wizard.zalouser.qrImageWriteFailed"),
|
||||
t("wizard.zalouser.scanApproveContinue"),
|
||||
...(qrPath ? [t("wizard.zalouser.scanApproveContinue")] : []),
|
||||
].join("\n"),
|
||||
t("wizard.zalouser.qrLoginTitle"),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user