Update open in other tab message (#11916)

This commit is contained in:
Michael Weimann 2023-11-22 11:46:11 +01:00 committed by GitHub
parent 6f715ab803
commit ecc46aeb8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 11 deletions

View file

@ -28,7 +28,7 @@ export function SessionLockStolenView(): JSX.Element {
return ( return (
<SplashPage className="mx_SessionLockStolenView"> <SplashPage className="mx_SessionLockStolenView">
<h1>{_t("common|error")}</h1> <h1>{_t("error_app_open_in_another_tab_title", { brand })}</h1>
<h2>{_t("error_app_open_in_another_tab", { brand })}</h2> <h2>{_t("error_app_open_in_another_tab", { brand })}</h2>
</SplashPage> </SplashPage>
); );

View file

@ -1056,7 +1056,8 @@
"unknown_error_code": "unknown error code", "unknown_error_code": "unknown error code",
"update_power_level": "Failed to change power level" "update_power_level": "Failed to change power level"
}, },
"error_app_open_in_another_tab": "%(brand)s has been opened in another tab.", "error_app_open_in_another_tab": "Switch to the other tab to connect to %(brand)s. This tab can now be closed.",
"error_app_open_in_another_tab_title": "%(brand)s is connected in another tab",
"error_app_opened_in_another_window": "%(brand)s is open in another window. Click \"%(label)s\" to use %(brand)s here and disconnect the other window.", "error_app_opened_in_another_window": "%(brand)s is open in another window. Click \"%(label)s\" to use %(brand)s here and disconnect the other window.",
"error_database_closed_description": "This may be caused by having the app open in multiple tabs or due to clearing browser data.", "error_database_closed_description": "This may be caused by having the app open in multiple tabs or due to clearing browser data.",
"error_database_closed_title": "Database unexpectedly closed", "error_database_closed_title": "Database unexpectedly closed",

View file

@ -1325,7 +1325,7 @@ describe("<MatrixChat />", () => {
await flushPromises(); await flushPromises();
// now we should see the error page // now we should see the error page
rendered.getByText("Test has been opened in another tab."); rendered.getByText("Test is connected in another tab");
// let initCrypto complete, and check we don't get a modal // let initCrypto complete, and check we don't get a modal
initCryptoCompleteDefer.resolve(); initCryptoCompleteDefer.resolve();

View file

@ -6,10 +6,10 @@ exports[`<MatrixChat /> Multi-tab lockout shows the lockout page when a second t
class="mx_SessionLockStolenView mx_SplashPage" class="mx_SessionLockStolenView mx_SplashPage"
> >
<h1> <h1>
Error Test is connected in another tab
</h1> </h1>
<h2> <h2>
Test has been opened in another tab. Switch to the other tab to connect to Test. This tab can now be closed.
</h2> </h2>
</main> </main>
</div> </div>
@ -22,10 +22,10 @@ exports[`<MatrixChat /> Multi-tab lockout shows the lockout page when a second t
class="mx_SessionLockStolenView mx_SplashPage" class="mx_SessionLockStolenView mx_SplashPage"
> >
<h1> <h1>
Error Test is connected in another tab
</h1> </h1>
<h2> <h2>
Test has been opened in another tab. Switch to the other tab to connect to Test. This tab can now be closed.
</h2> </h2>
</main> </main>
</div> </div>
@ -38,10 +38,10 @@ exports[`<MatrixChat /> Multi-tab lockout shows the lockout page when a second t
class="mx_SessionLockStolenView mx_SplashPage" class="mx_SessionLockStolenView mx_SplashPage"
> >
<h1> <h1>
Error Test is connected in another tab
</h1> </h1>
<h2> <h2>
Test has been opened in another tab. Switch to the other tab to connect to Test. This tab can now be closed.
</h2> </h2>
</main> </main>
</div> </div>
@ -53,10 +53,10 @@ exports[`<MatrixChat /> Multi-tab lockout shows the lockout page when a second t
class="mx_SessionLockStolenView mx_SplashPage" class="mx_SessionLockStolenView mx_SplashPage"
> >
<h1> <h1>
Error Test is connected in another tab
</h1> </h1>
<h2> <h2>
Test has been opened in another tab. Switch to the other tab to connect to Test. This tab can now be closed.
</h2> </h2>
</main> </main>
</div> </div>