summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/project.js
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-08-25 16:05:32 -0500
committerEric Eastwood <contact@ericeastwood.com>2017-08-25 16:38:13 -0500
commit18bcbe30c955030391c47d8211360991f75479a5 (patch)
tree17bf45cb297f1e0bd0ff727180ef0bf4f7ea8dad /app/assets/javascripts/project.js
parent2352f187a601be70eaeb795b7ff8c9199726debf (diff)
downloadgitlab-ce-fix-repo-editor-regex.tar.gz
Move repo specific dropdown label processing into the configfix-repo-editor-regex
See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13390#note_38460888 https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/13428#note_38462176
Diffstat (limited to 'app/assets/javascripts/project.js')
-rw-r--r--app/assets/javascripts/project.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/project.js b/app/assets/javascripts/project.js
index d7e3ab42f00..54b434e27bf 100644
--- a/app/assets/javascripts/project.js
+++ b/app/assets/javascripts/project.js
@@ -2,6 +2,7 @@
/* global ProjectSelect */
import Cookies from 'js-cookie';
+import getSafeBranchName from './repo/helpers/get_safe_branch_name_helper';
(function() {
this.Project = (function() {
@@ -119,6 +120,7 @@ import Cookies from 'js-cookie';
toggleLabel: function(obj, $el) {
return $el.text().trim();
},
+ updateLabel: getSafeBranchName,
clicked: function(options) {
const { e } = options;
e.preventDefault();