remove undefined rule name & add todo
This commit is contained in:
parent
babbcae8d9
commit
8133b2c665
@ -34,7 +34,7 @@ function initSubscriptionsModule() {
|
|||||||
render: function(data, type) {
|
render: function(data, type) {
|
||||||
let badges = $("<div>");
|
let badges = $("<div>");
|
||||||
data.forEach(function(rule, idx) {
|
data.forEach(function(rule, idx) {
|
||||||
let badge = $(`<span class="badge text-bg-secondary">${rule.name}</span>`)
|
let badge = $(`<span class="badge text-bg-secondary">${rule}</span>`) // TODO: translate to rule.name
|
||||||
if (idx > 0) { badge.addClass("ms-2") }
|
if (idx > 0) { badge.addClass("ms-2") }
|
||||||
badges.append(badge);
|
badges.append(badge);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user