legal links for mac app store
This commit is contained in:
parent
0a2d16a883
commit
c499c3d081
|
@ -1257,5 +1257,15 @@
|
||||||
},
|
},
|
||||||
"premiumManageAlertAppStore": {
|
"premiumManageAlertAppStore": {
|
||||||
"message": "You can manage your subscription from the App Store. Do you want to visit the App Store now?"
|
"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'),
|
label: this.main.i18nService.t('emailUs'),
|
||||||
click: () => shell.openExternal('mailTo:hello@bitwarden.com'),
|
click: () => shell.openExternal('mailTo:hello@bitwarden.com'),
|
||||||
|
@ -169,6 +169,25 @@ export class MenuMain extends BaseMenu {
|
||||||
label: this.main.i18nService.t('fileBugReport'),
|
label: this.main.i18nService.t('fileBugReport'),
|
||||||
click: () => shell.openExternal('https://github.com/bitwarden/desktop'),
|
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' },
|
{ type: 'separator' },
|
||||||
{
|
{
|
||||||
label: this.main.i18nService.t('followUs'),
|
label: this.main.i18nService.t('followUs'),
|
||||||
|
@ -196,7 +215,7 @@ export class MenuMain extends BaseMenu {
|
||||||
label: this.main.i18nService.t('goToWebVault'),
|
label: this.main.i18nService.t('goToWebVault'),
|
||||||
click: async () => await this.openWebVault(),
|
click: async () => await this.openWebVault(),
|
||||||
},
|
},
|
||||||
];
|
]);
|
||||||
|
|
||||||
if (!isWindowsStore()) {
|
if (!isWindowsStore()) {
|
||||||
helpSubmenu.push({
|
helpSubmenu.push({
|
||||||
|
@ -397,9 +416,9 @@ export class MenuMain extends BaseMenu {
|
||||||
// File menu
|
// File menu
|
||||||
template[0].submenu = (template[0].submenu as MenuItemConstructorOptions[]).concat(
|
template[0].submenu = (template[0].submenu as MenuItemConstructorOptions[]).concat(
|
||||||
firstMenuOptions, {
|
firstMenuOptions, {
|
||||||
label: this.i18nService.t('quitBitwarden'),
|
label: this.i18nService.t('quitBitwarden'),
|
||||||
role: 'quit',
|
role: 'quit',
|
||||||
});
|
});
|
||||||
|
|
||||||
// About menu
|
// About menu
|
||||||
const aboutMenuAdditions: MenuItemConstructorOptions[] = [
|
const aboutMenuAdditions: MenuItemConstructorOptions[] = [
|
||||||
|
|
Loading…
Reference in New Issue