Skip to content

Commit 2d38eb9

Browse files
authored
feat(app-shell): add EULA to desktop app help menu (#15683)
closes AUTH-536
1 parent 1da76e5 commit 2d38eb9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app-shell/src/menu.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { LOG_DIR } from './log'
88
const PRODUCT_NAME: string = _PKG_PRODUCT_NAME_
99
const BUGS_URL: string = _PKG_BUGS_URL_
1010

11+
const EULA_URL = 'https://opentrons.com/eula' as const
12+
1113
// file or application menu
1214
const firstMenu: MenuItemConstructorOptions = {
1315
role: process.platform === 'darwin' ? 'appMenu' : 'fileMenu',
@@ -42,6 +44,16 @@ const helpMenu: MenuItemConstructorOptions = {
4244
shell.openExternal(BUGS_URL)
4345
},
4446
},
47+
{
48+
label: 'View Privacy Policy',
49+
click: () => {
50+
shell.openExternal(EULA_URL).catch((e: Error) => {
51+
console.error(
52+
`could not open end user license agreement: ${e.message}`
53+
)
54+
})
55+
},
56+
},
4557
],
4658
}
4759

0 commit comments

Comments
 (0)