summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-07-08 14:18:50 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-07-29 15:20:39 +0530
commit9fa661472e5e1e2edc91032a6093a3516974e27e (patch)
tree4721d5a5e098363e99c6e50eb344f30793a88018 /app/assets
parent12387b4d2c6abbe1de2fc6b0776207d9135c29f0 (diff)
downloadgitlab-ce-9fa661472e5e1e2edc91032a6093a3516974e27e.tar.gz
Update protected branches spec to work with the `select`s.
1. Get the existing spec passing. 2. Add specs for all the access control options, both while creating and updating protected branches. 3. Show a flash notice when updating protected branches, primarily so the spec knows when the update is done.
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/protected_branches_access_select.js.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/protected_branches_access_select.js.coffee b/app/assets/javascripts/protected_branches_access_select.js.coffee
index 7c6f2f9f38e..6df11146ba9 100644
--- a/app/assets/javascripts/protected_branches_access_select.js.coffee
+++ b/app/assets/javascripts/protected_branches_access_select.js.coffee
@@ -34,6 +34,7 @@ class @ProtectedBranchesAccessSelect
success: ->
row = $(e.target)
row.closest('tr').effect('highlight')
+ new Flash("Updated protected branch!", "notice")
error: ->
new Flash("Failed to update branch!", "alert")