1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-09-27 03:53:00 +02:00

legal links for mac app store

This commit is contained in:
Kyle Spearrin 2019-09-25 20:56:57 -04:00
parent 0a2d16a883
commit c499c3d081
2 changed files with 34 additions and 5 deletions

View File

@ -1257,5 +1257,15 @@
},
"premiumManageAlertAppStore": {
"message": "You can manage your subscription from the App Store. Do you want to visit the App Store now?"
},
"legal": {
"message": "Legal",
"description": "Noun. As in 'legal documents', like our terms of service and privacy policy."
},
"termsOfService": {
"message": "Terms of Service"
},
"privacyPolicy": {
"message": "Privacy Policy"
}
}

View File

@ -156,7 +156,7 @@ export class MenuMain extends BaseMenu {
});
}
const helpSubmenu: MenuItemConstructorOptions[] = [
let helpSubmenu: MenuItemConstructorOptions[] = [
{
label: this.main.i18nService.t('emailUs'),
click: () => shell.openExternal('mailTo:hello@bitwarden.com'),
@ -169,6 +169,25 @@ export class MenuMain extends BaseMenu {
label: this.main.i18nService.t('fileBugReport'),
click: () => shell.openExternal('https://github.com/bitwarden/desktop'),
},
];
if (isMacAppStore()) {
helpSubmenu.push({
label: this.main.i18nService.t('legal'),
submenu: [
{
label: this.main.i18nService.t('termsOfService'),
click: () => shell.openExternal('https://bitwarden.com/terms/'),
},
{
label: this.main.i18nService.t('privacyPolicy'),
click: () => shell.openExternal('https://bitwarden.com/privacy/'),
},
],
});
}
helpSubmenu = helpSubmenu.concat([
{ type: 'separator' },
{
label: this.main.i18nService.t('followUs'),
@ -196,7 +215,7 @@ export class MenuMain extends BaseMenu {
label: this.main.i18nService.t('goToWebVault'),
click: async () => await this.openWebVault(),
},
];
]);
if (!isWindowsStore()) {
helpSubmenu.push({
@ -397,9 +416,9 @@ export class MenuMain extends BaseMenu {
// File menu
template[0].submenu = (template[0].submenu as MenuItemConstructorOptions[]).concat(
firstMenuOptions, {
label: this.i18nService.t('quitBitwarden'),
role: 'quit',
});
label: this.i18nService.t('quitBitwarden'),
role: 'quit',
});
// About menu
const aboutMenuAdditions: MenuItemConstructorOptions[] = [