legal links for mac app store
This commit is contained in:
parent
0a2d16a883
commit
c499c3d081
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue