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>2021-06-14 09:10:18 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-14 09:10:18 +0300
commit54a8c42f35399da6e259baef16b9cc9be287d59e (patch)
tree51dfe467d7e1514fb6c2a3aabfa079717cb7191d /app/assets/javascripts/incidents_settings
parent8f30cb223b5e15af8b21ff313e81f70d46c5a42a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/incidents_settings')
-rw-r--r--app/assets/javascripts/incidents_settings/components/incidents_settings_tabs.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/javascripts/incidents_settings/components/incidents_settings_tabs.vue b/app/assets/javascripts/incidents_settings/components/incidents_settings_tabs.vue
index f9d24c96c43..af4905deef4 100644
--- a/app/assets/javascripts/incidents_settings/components/incidents_settings_tabs.vue
+++ b/app/assets/javascripts/incidents_settings/components/incidents_settings_tabs.vue
@@ -12,6 +12,11 @@ export default {
ServiceLevelAgreementForm: () =>
import('ee_component/incidents_settings/components/service_level_agreement_form.vue'),
},
+ computed: {
+ activeTabs() {
+ return this.$options.tabs.filter((tab) => tab.active);
+ },
+ },
tabs: INTEGRATION_TABS_CONFIG,
i18n: I18N_INTEGRATION_TABS,
};
@@ -42,8 +47,7 @@ export default {
<gl-tabs>
<service-level-agreement-form />
<gl-tab
- v-for="(tab, index) in $options.tabs"
- v-if="tab.active"
+ v-for="(tab, index) in activeTabs"
:key="`${tab.title}_${index}`"
:title="tab.title"
>