Commit 03fbbaa7 authored by David Barr's avatar David Barr Committed by Phil Hughes

Label for depending merge requests unnecessarily escapes HTML

parent d6e94fa6
......@@ -82,7 +82,11 @@ export default {
);
return this.closedCount > 0
? `${mainText} <strong>${n__('(%d closed)', '(%d closed)', this.closedCount)}</strong>`
? `${mainText} %{strongStart}${n__(
'(%d closed)',
'(%d closed)',
this.closedCount,
)}%{strongEnd}`
: mainText;
},
status() {
......
......@@ -87,7 +87,7 @@ describe('BlockingMergeRequestsReport', () => {
createComponent();
expect(wrapper.vm.blockedByText).toBe(
'Depends on 2 merge requests being merged <strong>(1 closed)</strong>',
'Depends on 2 merge requests being merged %{strongStart}(1 closed)%{strongEnd}',
);
});
......
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