Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-07-16 12:09:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-07-16 12:09:28 +0300
commit9c7b3812a22465b77ee24657ad1b446b81ffbc74 (patch)
tree7185947a0d6528af2779209a62cafc17f1a8a243 /app/assets/javascripts/alerts_settings
parent000087abd5a11442a7e34b0e5f3bf86cb40fa8e4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/alerts_settings')
-rw-r--r--app/assets/javascripts/alerts_settings/components/alerts_settings_form.vue5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/assets/javascripts/alerts_settings/components/alerts_settings_form.vue b/app/assets/javascripts/alerts_settings/components/alerts_settings_form.vue
index 6d1fc29ff84..6e7da070bbc 100644
--- a/app/assets/javascripts/alerts_settings/components/alerts_settings_form.vue
+++ b/app/assets/javascripts/alerts_settings/components/alerts_settings_form.vue
@@ -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!"
/>