Skip to content

Commit eddd451

Browse files
authored
[4.0] Backend - Add style to Privacy Quickicon badge (#33712)
Added a span to display the count. The classes applied to this span are identical to the other quickicon span badges
1 parent 05aeb0e commit eddd451

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build/media_source/plg_quickicon_privacycheck/js/privacycheck.es6.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525

2626
if (request.data.number_urgent_requests) {
2727
// Quickicon on dashboard shows message
28-
link.textContent = `${text.REQUESTFOUND} ${request.data.number_urgent_requests}`;
28+
const countBadge = document.createElement('span');
29+
countBadge.classList.add('badge', 'text-dark', 'bg-light');
30+
countBadge.textContent = request.data.number_urgent_requests;
31+
link.textContent = `${text.REQUESTFOUND} `;
32+
link.appendChild(countBadge);
33+
2934
// Quickicon becomes red
3035
quickicon.classList.add('danger');
3136

0 commit comments

Comments
 (0)