feat(statuspage): add nested status page groups and optional component details
This commit is contained in:
1 parent
1c31003baf
commit
9b26b4150e
26 files changed
+4566
-760
No files matched your search
@@ -73,7 +73,9 @@
|
||||
.map((row) => {
|
||||
const obj = {};
|
||||
for (const f of row.querySelectorAll("[data-field]")) {
|
||||
if (f.dataset.field !== "include") obj[f.dataset.field] = f.value;
|
||||
if (f.dataset.field !== "include") {
|
||||
obj[f.dataset.field] = f.dataset.nullable !== undefined ? (f.value || null) : f.value;
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
});
|
||||
@@ -165,6 +167,7 @@
|
||||
}
|
||||
const post = ev.target.closest("[data-post]");
|
||||
if (post) {
|
||||
if (post.dataset.confirm && !confirm(post.dataset.confirm)) return;
|
||||
post.disabled = true;
|
||||
try {
|
||||
await api.post(post.dataset.post);
|
||||
|
||||
Reference in new issue
Block a user