feat(ui): rename the zone list problems column to status
This commit is contained in:
1 parent
bca04d7ab2
commit
9c2fb9d15b
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -18,7 +18,7 @@ function problemCell(zone) {
|
|||||||
}
|
}
|
||||||
const counts = state.counts.get(zone.name) || { error: 0, warning: 0 };
|
const counts = state.counts.get(zone.name) || { error: 0, warning: 0 };
|
||||||
if (counts.error === 0 && counts.warning === 0) {
|
if (counts.error === 0 && counts.warning === 0) {
|
||||||
cell.append(h("span", { class: "badge badge-ok", text: "none" }));
|
cell.append(h("span", { class: "badge badge-ok", text: "OK" }));
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
if (counts.error > 0) cell.append(h("span", { class: "badge badge-error", text: plural(counts.error, "error", "errors") }), " ");
|
if (counts.error > 0) cell.append(h("span", { class: "badge badge-error", text: plural(counts.error, "error", "errors") }), " ");
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
<div class="table-wrap">
|
<div class="table-wrap">
|
||||||
<table class="table" id="zones-table">
|
<table class="table" id="zones-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th scope="col">Zone</th><th scope="col" class="num">Records</th><th scope="col">SOA serial</th><th scope="col">Problems</th></tr>
|
<tr><th scope="col">Zone</th><th scope="col" class="num">Records</th><th scope="col">SOA serial</th><th scope="col">Status</th></tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="zones-body"></tbody>
|
<tbody id="zones-body"></tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in new issue
Block a user