diff options
author | Stan Hu <stanhu@gmail.com> | 2018-11-28 03:04:11 -0800 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-12-03 13:41:06 -0200 |
commit | 0566bbd064e2fd6bf37bffc146a4c48aacf7059a (patch) | |
tree | f7d7c7fbfdaa63e4f7cf58f5b00953dddb3fbbc8 /app/assets/javascripts/mirrors | |
parent | 1ddde35ec6dcf01556d5127e49bad86a2fab009e (diff) | |
download | gitlab-ce-0566bbd064e2fd6bf37bffc146a4c48aacf7059a.tar.gz |
Fix "protected branches only" checkbox not set properly at init
The `only_protected_branches` value was being enabled by default
even though the checkbox was default off. In EE, this wasn't a
problem because there was EE-specific code to update the
entire form.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53515
Diffstat (limited to 'app/assets/javascripts/mirrors')
-rw-r--r-- | app/assets/javascripts/mirrors/mirror_repos.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/mirrors/mirror_repos.js b/app/assets/javascripts/mirrors/mirror_repos.js index 0d8f31d6bfc..196b84621b6 100644 --- a/app/assets/javascripts/mirrors/mirror_repos.js +++ b/app/assets/javascripts/mirrors/mirror_repos.js @@ -30,6 +30,7 @@ export default class MirrorRepos { this.$password.on('input.updateUrl', () => this.debouncedUpdateUrl()); this.initMirrorSSH(); + this.updateProtectedBranches(); } initMirrorSSH() { |