summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/feature_flags/components/strategy.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/feature_flags/components/strategy.vue')
-rw-r--r--app/assets/javascripts/feature_flags/components/strategy.vue8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/assets/javascripts/feature_flags/components/strategy.vue b/app/assets/javascripts/feature_flags/components/strategy.vue
index ce03248381c..9593bcf6487 100644
--- a/app/assets/javascripts/feature_flags/components/strategy.vue
+++ b/app/assets/javascripts/feature_flags/components/strategy.vue
@@ -83,7 +83,7 @@ export default {
);
},
filteredEnvironments() {
- return this.environments.filter(e => !e.shouldBeDestroyed);
+ return this.environments.filter((e) => !e.shouldBeDestroyed);
},
isPercentUserRollout() {
return this.formStrategy.name === ROLLOUT_STRATEGY_PERCENT_ROLLOUT;
@@ -91,7 +91,9 @@ export default {
},
methods: {
addEnvironment(environment) {
- const allEnvironmentsScope = this.environments.find(scope => scope.environmentScope === '*');
+ const allEnvironmentsScope = this.environments.find(
+ (scope) => scope.environmentScope === '*',
+ );
if (allEnvironmentsScope) {
allEnvironmentsScope.shouldBeDestroyed = true;
}
@@ -113,7 +115,7 @@ export default {
if (isNumber(environment.id)) {
Vue.set(environment, 'shouldBeDestroyed', true);
} else {
- this.environments = this.environments.filter(e => e !== environment);
+ this.environments = this.environments.filter((e) => e !== environment);
}
if (this.filteredEnvironments.length === 0) {
this.environments.push({ environmentScope: '*' });