mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Add Privacy Statement and License menu items (#1148)
* Add Privacy Statement and License menu items * Fix spaces
This commit is contained in:
@@ -1009,28 +1009,28 @@ export class CodeMenu {
|
|||||||
// product.twitterUrl ? new MenuItem({ label: mnemonicLabel(nls.localize({ key: 'miTwitter', comment: ['&& denotes a mnemonic'] }, "&&Join us on Twitter")), click: () => this.openUrl(product.twitterUrl, 'openTwitterUrl') }) : null,
|
// product.twitterUrl ? new MenuItem({ label: mnemonicLabel(nls.localize({ key: 'miTwitter', comment: ['&& denotes a mnemonic'] }, "&&Join us on Twitter")), click: () => this.openUrl(product.twitterUrl, 'openTwitterUrl') }) : null,
|
||||||
// product.requestFeatureUrl ? new MenuItem({ label: mnemonicLabel(nls.localize({ key: 'miUserVoice', comment: ['&& denotes a mnemonic'] }, "&&Search Feature Requests")), click: () => this.openUrl(product.requestFeatureUrl, 'openUserVoiceUrl') }) : null,
|
// product.requestFeatureUrl ? new MenuItem({ label: mnemonicLabel(nls.localize({ key: 'miUserVoice', comment: ['&& denotes a mnemonic'] }, "&&Search Feature Requests")), click: () => this.openUrl(product.requestFeatureUrl, 'openUserVoiceUrl') }) : null,
|
||||||
reportIssuesItem,
|
reportIssuesItem,
|
||||||
// (product.twitterUrl || product.requestFeatureUrl || product.reportIssueUrl) ? __separator__() : null,
|
(product.twitterUrl || product.requestFeatureUrl || product.reportIssueUrl) ? __separator__() : null,
|
||||||
// product.licenseUrl ? new MenuItem({
|
product.licenseUrl ? new MenuItem({
|
||||||
// label: mnemonicLabel(nls.localize({ key: 'miLicense', comment: ['&& denotes a mnemonic'] }, "View &&License")), click: () => {
|
label: this.mnemonicLabel(nls.localize({ key: 'miLicense', comment: ['&& denotes a mnemonic'] }, "View &&License")), click: () => {
|
||||||
// if (language) {
|
if (language) {
|
||||||
// const queryArgChar = product.licenseUrl.indexOf('?') > 0 ? '&' : '?';
|
const queryArgChar = product.licenseUrl.indexOf('?') > 0 ? '&' : '?';
|
||||||
// this.openUrl(`${product.licenseUrl}${queryArgChar}lang=${language}`, 'openLicenseUrl');
|
this.openUrl(`${product.licenseUrl}${queryArgChar}lang=${language}`, 'openLicenseUrl');
|
||||||
// } else {
|
} else {
|
||||||
// this.openUrl(product.licenseUrl, 'openLicenseUrl');
|
this.openUrl(product.licenseUrl, 'openLicenseUrl');
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }) : null,
|
}) : null,
|
||||||
// product.privacyStatementUrl ? new MenuItem({
|
product.privacyStatementUrl ? new MenuItem({
|
||||||
// label: mnemonicLabel(nls.localize({ key: 'miPrivacyStatement', comment: ['&& denotes a mnemonic'] }, "&&Privacy Statement")), click: () => {
|
label: this.mnemonicLabel(nls.localize({ key: 'miPrivacyStatement', comment: ['&& denotes a mnemonic'] }, "&&Privacy Statement")), click: () => {
|
||||||
// if (language) {
|
if (language) {
|
||||||
// const queryArgChar = product.licenseUrl.indexOf('?') > 0 ? '&' : '?';
|
const queryArgChar = product.licenseUrl.indexOf('?') > 0 ? '&' : '?';
|
||||||
// this.openUrl(`${product.privacyStatementUrl}${queryArgChar}lang=${language}`, 'openPrivacyStatement');
|
this.openUrl(`${product.privacyStatementUrl}${queryArgChar}lang=${language}`, 'openPrivacyStatement');
|
||||||
// } else {
|
} else {
|
||||||
// this.openUrl(product.privacyStatementUrl, 'openPrivacyStatement');
|
this.openUrl(product.privacyStatementUrl, 'openPrivacyStatement');
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }) : null,
|
}) : null,
|
||||||
// (product.licenseUrl || product.privacyStatementUrl) ? __separator__() : null,
|
(product.licenseUrl || product.privacyStatementUrl) ? __separator__() : null,
|
||||||
toggleDevToolsItem,
|
toggleDevToolsItem,
|
||||||
isWindows && product.quality !== 'stable' ? showAccessibilityOptions : null
|
isWindows && product.quality !== 'stable' ? showAccessibilityOptions : null
|
||||||
]).forEach(item => helpMenu.append(item));
|
]).forEach(item => helpMenu.append(item));
|
||||||
|
|||||||
Reference in New Issue
Block a user