mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Use brand and help url from config (#1008)
This commit is contained in:
parent
3d2006ca50
commit
a6e175268e
@ -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",
|
||||
|
@ -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");
|
||||
},
|
||||
},
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user