Commit bb02065a authored by Alfredo Sumaran's avatar Alfredo Sumaran

Prevent setting HTML directly from the JS

parent 1983eb6c
......@@ -66,8 +66,8 @@ class ProtectedBranchDropdown {
if (branchName) {
this.$dropdownContainer
.find('.create-new-protected-branch')
.html(`Create wildcard <code>${branchName}</code>`);
.find('.create-new-protected-branch code')
.text(branchName);
}
this.$dropdownFooter.toggleClass('hidden', !branchName);
......
......@@ -11,4 +11,5 @@
%ul.dropdown-footer-list
%li
= link_to '#', title: "New Protected Branch", class: "create-new-protected-branch" do
Create new
Create wildcard
%code
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment