Use configured URL for link to desktop app in message search settings (#30742)
* Use configured URL for link to desktop app in message search settings Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e31042f1b1
commit
5edcc4c1c4
@@ -132,7 +132,7 @@ export default class EventIndexPanel extends React.Component<EmptyObject, IState
|
||||
|
||||
public render(): React.ReactNode {
|
||||
let eventIndexingSettings: JSX.Element | undefined;
|
||||
const brand = SdkConfig.get().brand;
|
||||
const { brand, desktop_builds: desktopBuilds } = SdkConfig.get();
|
||||
|
||||
if (EventIndexPeg.get() !== null) {
|
||||
eventIndexingSettings = (
|
||||
@@ -196,11 +196,7 @@ export default class EventIndexPanel extends React.Component<EmptyObject, IState
|
||||
},
|
||||
{
|
||||
desktopLink: (sub) => (
|
||||
<ExternalLink
|
||||
href="https://element.io/get-started"
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
<ExternalLink href={desktopBuilds.url} target="_blank" rel="noreferrer noopener">
|
||||
{sub}
|
||||
</ExternalLink>
|
||||
),
|
||||
|
||||
@@ -26,7 +26,7 @@ exports[`<EventIndexPanel /> when event indexing is not supported renders link t
|
||||
Element can't securely cache encrypted messages locally while running in a web browser. Use
|
||||
<a
|
||||
class="mx_ExternalLink"
|
||||
href="https://element.io/get-started"
|
||||
href="https://element.io/download"
|
||||
rel="noreferrer noopener"
|
||||
target="_blank"
|
||||
>
|
||||
|
||||
@@ -142,7 +142,7 @@ exports[`<SecurityUserSettingsTab /> renders security section 1`] = `
|
||||
Element can't securely cache encrypted messages locally while running in a web browser. Use
|
||||
<a
|
||||
class="mx_ExternalLink"
|
||||
href="https://element.io/get-started"
|
||||
href="https://element.io/download"
|
||||
rel="noreferrer noopener"
|
||||
target="_blank"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user