Add latest changes from gitlab-org/gitlab@18-0-stable-ee

This commit is contained in:
GitLab Bot
2025-05-29 13:23:03 +00:00
parent a647b7117a
commit f33175a698
2 changed files with 16 additions and 0 deletions

View File

@ -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);

View File

@ -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', () => {