summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/protected_tags
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2017-03-30 23:35:19 +0100
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-03-31 19:37:16 +0100
commit18b445ade4280c03e73ccbf2ca4d175e97a887c8 (patch)
treecc0b8d257069f958aaf7090ce0b16ef8d1f91383 /app/assets/javascripts/protected_tags
parentf51eac1df967856299467f65ac6fb81e2d610ff5 (diff)
downloadgitlab-ce-18b445ade4280c03e73ccbf2ca4d175e97a887c8.tar.gz
Protected tags can be added/listed via UI
Diffstat (limited to 'app/assets/javascripts/protected_tags')
-rw-r--r--app/assets/javascripts/protected_tags/protected_tag_dropdown.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/protected_tags/protected_tag_dropdown.js b/app/assets/javascripts/protected_tags/protected_tag_dropdown.js
index 5a0356f502c..ccc4c81fa18 100644
--- a/app/assets/javascripts/protected_tags/protected_tag_dropdown.js
+++ b/app/assets/javascripts/protected_tags/protected_tag_dropdown.js
@@ -53,9 +53,9 @@ class ProtectedTagDropdown {
getProtectedTags(term, callback) {
if (this.selectedTag) {
- callback(gon.open_branches.concat(this.selectedTag));
+ callback(gon.open_tags.concat(this.selectedTag));
} else {
- callback(gon.open_branches);
+ callback(gon.open_tags);
}
}