Use brand and help url from config (#1008)

This commit is contained in:
Michael Telatynski
2023-06-14 07:58:37 +00:00
committed by GitHub
parent 3d2006ca50
commit a6e175268e
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
"Minimize": "Minimize", "Minimize": "Minimize",
"Close": "Close", "Close": "Close",
"Help": "Help", "Help": "Help",
"Element Help": "Element Help", "%(brand)s Help": "%(brand)s Help",
"About": "About", "About": "About",
"Services": "Services", "Services": "Services",
"Hide": "Hide", "Hide": "Hide",
+3 -2
View File
@@ -137,9 +137,10 @@ export function buildMenuTemplate(): Menu {
role: "help", role: "help",
submenu: [ 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 { click(): void {
shell.openExternal("https://element.io/help"); shell.openExternal(global.vectorConfig?.help_url || "https://element.io/help");
}, },
}, },
], ],