diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-07-08 14:18:50 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-07-29 15:20:39 +0530 |
commit | 9fa661472e5e1e2edc91032a6093a3516974e27e (patch) | |
tree | 4721d5a5e098363e99c6e50eb344f30793a88018 /app/assets | |
parent | 12387b4d2c6abbe1de2fc6b0776207d9135c29f0 (diff) | |
download | gitlab-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.coffee | 1 |
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") |