mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-20 16:30:26 +00:00
Add latest changes from gitlab-org/gitlab@18-0-stable-ee
This commit is contained in:
@ -61,22 +61,37 @@ export default {
|
|||||||
Boolean(this.sshUrl) && {
|
Boolean(this.sshUrl) && {
|
||||||
text: __('Visual Studio Code (SSH)'),
|
text: __('Visual Studio Code (SSH)'),
|
||||||
href: `${this.$options.vsCodeBaseUrl}${this.sshUrlEncoded}`,
|
href: `${this.$options.vsCodeBaseUrl}${this.sshUrlEncoded}`,
|
||||||
|
extraAttrs: {
|
||||||
|
isUnsafeLink: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Boolean(this.httpUrl) && {
|
Boolean(this.httpUrl) && {
|
||||||
text: __('Visual Studio Code (HTTPS)'),
|
text: __('Visual Studio Code (HTTPS)'),
|
||||||
href: `${this.$options.vsCodeBaseUrl}${this.httpUrlEncoded}`,
|
href: `${this.$options.vsCodeBaseUrl}${this.httpUrlEncoded}`,
|
||||||
|
extraAttrs: {
|
||||||
|
isUnsafeLink: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Boolean(this.sshUrl) && {
|
Boolean(this.sshUrl) && {
|
||||||
text: __('IntelliJ IDEA (SSH)'),
|
text: __('IntelliJ IDEA (SSH)'),
|
||||||
href: `${this.$options.jetBrainsBaseUrl}${this.sshUrlEncoded}`,
|
href: `${this.$options.jetBrainsBaseUrl}${this.sshUrlEncoded}`,
|
||||||
|
extraAttrs: {
|
||||||
|
isUnsafeLink: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Boolean(this.httpUrl) && {
|
Boolean(this.httpUrl) && {
|
||||||
text: __('IntelliJ IDEA (HTTPS)'),
|
text: __('IntelliJ IDEA (HTTPS)'),
|
||||||
href: `${this.$options.jetBrainsBaseUrl}${this.httpUrlEncoded}`,
|
href: `${this.$options.jetBrainsBaseUrl}${this.httpUrlEncoded}`,
|
||||||
|
extraAttrs: {
|
||||||
|
isUnsafeLink: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Boolean(this.xcodeUrl) && {
|
Boolean(this.xcodeUrl) && {
|
||||||
text: __('Xcode'),
|
text: __('Xcode'),
|
||||||
href: this.xcodeUrl,
|
href: this.xcodeUrl,
|
||||||
|
extraAttrs: {
|
||||||
|
isUnsafeLink: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
|
@ -127,6 +127,7 @@ describe('Code Dropdown component', () => {
|
|||||||
|
|
||||||
expect(item.props('item').text).toBe(name);
|
expect(item.props('item').text).toBe(name);
|
||||||
expect(item.props('item').href).toContain(href);
|
expect(item.props('item').href).toContain(href);
|
||||||
|
expect(item.props('item').extraAttrs.isUnsafeLink).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('closes the dropdown on click', () => {
|
it('closes the dropdown on click', () => {
|
||||||
|
Reference in New Issue
Block a user