After saving, open the new check on the history page at #history-detail (32.7 follow-up point 3)
This commit is contained in:
1 parent
0020d4be55
commit
68cb2bf78a
1 file changed
+3
-1
@@ -690,7 +690,9 @@ async function saveHealthCheck() {
|
|||||||
}
|
}
|
||||||
const saved = await response.json();
|
const saved = await response.json();
|
||||||
saveStatus.textContent = "Health check saved.";
|
saveStatus.textContent = "Health check saved.";
|
||||||
const target = `/history?id=${encodeURIComponent(saved.id)}`;
|
// The saved check is opened on the history page, so the anchor of the detail
|
||||||
|
// section is part of the target (section 32.7 follow-up point 3).
|
||||||
|
const target = `/history?id=${encodeURIComponent(saved.id)}#history-detail`;
|
||||||
window.location.assign(target);
|
window.location.assign(target);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
saveStatus.textContent = error.message;
|
saveStatus.textContent = error.message;
|
||||||
|
|||||||
Reference in new issue
Block a user