Skip to content

Commit

Permalink
Use brand and help url from config (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Jun 14, 2023
1 parent 3d2006c commit a6e1752
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions src/vectormenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
},
},
],
Expand Down

0 comments on commit a6e1752

Please sign in to comment.