showing no pool message when there are no pool assocated with a config

This commit is contained in:
gabryon99 2020-08-01 15:40:36 +02:00
parent 46b50903e9
commit 1ba69cca0a

View file

@ -36,12 +36,9 @@ $(document).ready(function() {
const flat = data.map((f) => f.label);
return flat.join(', ');
}
else if (type == 'display' && data.length == 0 && row.id != 0) {
else if (type == 'display' && data.length == 0) {
return `<i>${i18n.no_pools_applied}</i>`
}
else if (type == "display" && row.id == 0) {
return `<i>${i18n.default}</i>`;
}
// return pools as a string
const flat = data.map((f) => f.label);