Skip to content

Commit 70f1c5f

Browse files
author
Alberto Iannaccone
authored
Add privacy policy menu item (#883)
1 parent b416e5f commit 70f1c5f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/help.ts

+14-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ export class Help extends Contribution {
8585
Help.Commands.VISIT_ARDUINO,
8686
createOpenHandler('https://www.arduino.cc/')
8787
);
88+
registry.registerCommand(
89+
Help.Commands.PRIVACY_POLICY,
90+
createOpenHandler('https://www.arduino.cc/en/privacy-policy')
91+
);
8892
}
8993

9094
registerMenus(registry: MenuModelRegistry): void {
@@ -122,9 +126,13 @@ export class Help extends Contribution {
122126
order: '6',
123127
});
124128
registry.registerMenuAction(ArduinoMenus.HELP__FIND_GROUP, {
125-
commandId: IDEUpdaterCommands.CHECK_FOR_UPDATES.id,
129+
commandId: Help.Commands.PRIVACY_POLICY.id,
126130
order: '7',
127131
});
132+
registry.registerMenuAction(ArduinoMenus.HELP__FIND_GROUP, {
133+
commandId: IDEUpdaterCommands.CHECK_FOR_UPDATES.id,
134+
order: '8',
135+
});
128136
}
129137

130138
registerKeybindings(registry: KeybindingRegistry): void {
@@ -172,5 +180,10 @@ export namespace Help {
172180
label: nls.localize('arduino/help/visit', 'Visit Arduino.cc'),
173181
category: 'Arduino',
174182
};
183+
export const PRIVACY_POLICY: Command = {
184+
id: 'arduino-privacy-policy',
185+
label: nls.localize('arduino/help/privacyPolicy', 'Privacy Policy'),
186+
category: 'Arduino',
187+
};
175188
}
176189
}

Diff for: i18n/en.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@
238238
"reference": "Reference",
239239
"findInReference": "Find in Reference",
240240
"faq": "Frequently Asked Questions",
241-
"visit": "Visit Arduino.cc"
241+
"visit": "Visit Arduino.cc",
242+
"privacyPolicy": "Privacy Policy"
242243
},
243244
"certificate": {
244245
"uploadRootCertificates": "Upload SSL Root Certificates",

0 commit comments

Comments
 (0)