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:
Diffstat (limited to 'app/assets/javascripts/feature_flags/components/form.vue')
-rw-r--r--app/assets/javascripts/feature_flags/components/form.vue7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/feature_flags/components/form.vue b/app/assets/javascripts/feature_flags/components/form.vue
index 29e82289107..26da0d56f9a 100644
--- a/app/assets/javascripts/feature_flags/components/form.vue
+++ b/app/assets/javascripts/feature_flags/components/form.vue
@@ -142,7 +142,14 @@ export default {
return !this.$options.rolloutPercentageRegex.test(percentage);
}),
onFormStrategyChange(strategy, index) {
+ const currentUserListId = this.filteredStrategies[index]?.userList?.id;
+ const newUserListId = strategy?.userList?.id;
+
Object.assign(this.filteredStrategies[index], strategy);
+
+ if (currentUserListId !== newUserListId) {
+ this.formStrategies = [...this.formStrategies];
+ }
},
},
};