Use brand and help url from config (#1008)

This commit is contained in:
Michael Telatynski 2023-06-14 08:58:37 +01:00 committed by GitHub
parent 3d2006ca50
commit a6e175268e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -24,7 +24,7 @@
"Minimize": "Minimize",
"Close": "Close",
"Help": "Help",
"Element Help": "Element Help",
"%(brand)s Help": "%(brand)s Help",
"About": "About",
"Services": "Services",
"Hide": "Hide",

View File

@ -137,9 +137,10 @@ export function buildMenuTemplate(): Menu {
role: "help",
submenu: [
{
label: _t("Element Help"),
// XXX: vectorConfig won't have defaults applied to it so we need to duplicate them here
label: _t("%(brand)s Help", { brand: global.vectorConfig?.brand || "Element" }),
click(): void {
shell.openExternal("https://element.io/help");
shell.openExternal(global.vectorConfig?.help_url || "https://element.io/help");
},
},
],