Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 70f1c5f

Browse filesBrowse files
author
Alberto Iannaccone
authored
Add privacy policy menu item (arduino#883)
1 parent b416e5f commit 70f1c5f
Copy full SHA for 70f1c5f

File tree

Expand file treeCollapse file tree

2 files changed

+16
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+16
-2
lines changed

‎arduino-ide-extension/src/browser/contributions/help.ts

Copy file name to clipboardExpand all lines: arduino-ide-extension/src/browser/contributions/help.ts
+14-1Lines changed: 14 additions & 1 deletion
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
}

‎i18n/en.json

Copy file name to clipboardExpand all lines: i18n/en.json
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.