Commit 5d465c31 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'alert-opsgenie-intergration-select' into 'master'

Alert opsgenie integration select

See merge request gitlab-org/gitlab!36798
parents 661d1ff7 3528558b
......@@ -203,8 +203,7 @@ export default {
}
return { ...el, disabled: false };
});
const [selected] = this.options;
this.selectedEndpoint = selected.value;
this.selectedEndpoint = this.options.find(({ value }) => value === 'opsgenie').value;
if (this.targetUrl === null) {
this.targetUrl = this.selectedService.targetUrl;
}
......@@ -497,7 +496,7 @@ export default {
>
<template #append>
<clipboard-button
:text="selectedService.authKey"
:text="selectedService.authKey || ''"
:title="$options.i18n.copyToClipboard"
class="gl-m-0!"
/>
......
......@@ -177,6 +177,7 @@ describe('AlertsSettingsForm', () => {
it('shows a input for the opsgenie target URL', () => {
expect(findApiUrl().exists()).toBe(true);
expect(findSelect().attributes('value')).toBe('opsgenie');
});
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment