mirror of
https://github.com/vector-im/element-web.git
synced 2025-11-10 05:01:24 +01:00
fix: use help_encryption_url of config instead of hardcoded https://element.io/help#encryption5 (#30746)
* fix: use `help_encryption_url` instead of hardcoded `https://element.io/help#encryption5` * test: update snapshot
This commit is contained in:
parent
e3dceb3718
commit
d79becc2a9
@ -17,6 +17,7 @@ import { EncryptionCardButtons } from "../settings/encryption/EncryptionCardButt
|
|||||||
import { type OpenToTabPayload } from "../../../dispatcher/payloads/OpenToTabPayload";
|
import { type OpenToTabPayload } from "../../../dispatcher/payloads/OpenToTabPayload";
|
||||||
import { Action } from "../../../dispatcher/actions";
|
import { Action } from "../../../dispatcher/actions";
|
||||||
import { UserTab } from "./UserTab";
|
import { UserTab } from "./UserTab";
|
||||||
|
import SdkConfig from "../../../SdkConfig";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
onFinished: (dismissed: boolean) => void;
|
onFinished: (dismissed: boolean) => void;
|
||||||
@ -60,7 +61,7 @@ export default class ConfirmKeyStorageOffDialog extends React.Component<Props> {
|
|||||||
a: (sub) => (
|
a: (sub) => (
|
||||||
<>
|
<>
|
||||||
<br />
|
<br />
|
||||||
<a href="https://element.io/help#encryption5" target="_blank" rel="noreferrer noopener">
|
<a href={SdkConfig.get("help_encryption_url")} target="_blank" rel="noreferrer noopener">
|
||||||
{sub} <PopOutIcon />
|
{sub} <PopOutIcon />
|
||||||
</a>
|
</a>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@ -13,6 +13,7 @@ import { SettingsSection } from "../shared/SettingsSection";
|
|||||||
import { _t } from "../../../../languageHandler";
|
import { _t } from "../../../../languageHandler";
|
||||||
import { SettingsHeader } from "../SettingsHeader";
|
import { SettingsHeader } from "../SettingsHeader";
|
||||||
import { useKeyStoragePanelViewModel } from "../../../viewmodels/settings/encryption/KeyStoragePanelViewModel";
|
import { useKeyStoragePanelViewModel } from "../../../viewmodels/settings/encryption/KeyStoragePanelViewModel";
|
||||||
|
import SdkConfig from "../../../../SdkConfig";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
/**
|
/**
|
||||||
@ -55,7 +56,7 @@ export const KeyStoragePanel: React.FC<Props> = ({ onKeyStorageDisableClick }) =
|
|||||||
}
|
}
|
||||||
subHeading={_t("settings|encryption|key_storage|description", undefined, {
|
subHeading={_t("settings|encryption|key_storage|description", undefined, {
|
||||||
a: (sub) => (
|
a: (sub) => (
|
||||||
<a href="https://element.io/help#encryption5" target="_blank" rel="noreferrer noopener">
|
<a href={SdkConfig.get("help_encryption_url")} target="_blank" rel="noreferrer noopener">
|
||||||
{sub}
|
{sub}
|
||||||
</a>
|
</a>
|
||||||
),
|
),
|
||||||
|
|||||||
@ -34,7 +34,7 @@ exports[`ConfirmKeyStorageOffDialog renders 1`] = `
|
|||||||
If you sign out of all your devices you will lose your message history and will need to verify all your existing contacts again.
|
If you sign out of all your devices you will lose your message history and will need to verify all your existing contacts again.
|
||||||
<br />
|
<br />
|
||||||
<a
|
<a
|
||||||
href="https://element.io/help#encryption5"
|
href="https://element.io/help#encryption"
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user