mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-08-16 17:13:01 +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) && {
|
||||
text: __('Visual Studio Code (SSH)'),
|
||||
href: `${this.$options.vsCodeBaseUrl}${this.sshUrlEncoded}`,
|
||||
extraAttrs: {
|
||||
isUnsafeLink: true,
|
||||
},
|
||||
},
|
||||
Boolean(this.httpUrl) && {
|
||||
text: __('Visual Studio Code (HTTPS)'),
|
||||
href: `${this.$options.vsCodeBaseUrl}${this.httpUrlEncoded}`,
|
||||
extraAttrs: {
|
||||
isUnsafeLink: true,
|
||||
},
|
||||
},
|
||||
Boolean(this.sshUrl) && {
|
||||
text: __('IntelliJ IDEA (SSH)'),
|
||||
href: `${this.$options.jetBrainsBaseUrl}${this.sshUrlEncoded}`,
|
||||
extraAttrs: {
|
||||
isUnsafeLink: true,
|
||||
},
|
||||
},
|
||||
Boolean(this.httpUrl) && {
|
||||
text: __('IntelliJ IDEA (HTTPS)'),
|
||||
href: `${this.$options.jetBrainsBaseUrl}${this.httpUrlEncoded}`,
|
||||
extraAttrs: {
|
||||
isUnsafeLink: true,
|
||||
},
|
||||
},
|
||||
Boolean(this.xcodeUrl) && {
|
||||
text: __('Xcode'),
|
||||
href: this.xcodeUrl,
|
||||
extraAttrs: {
|
||||
isUnsafeLink: true,
|
||||
},
|
||||
},
|
||||
].filter(Boolean);
|
||||
|
||||
|
@ -127,6 +127,7 @@ describe('Code Dropdown component', () => {
|
||||
|
||||
expect(item.props('item').text).toBe(name);
|
||||
expect(item.props('item').href).toContain(href);
|
||||
expect(item.props('item').extraAttrs.isUnsafeLink).toBe(true);
|
||||
});
|
||||
|
||||
it('closes the dropdown on click', () => {
|
||||
|
Reference in New Issue
Block a user