fix(race-setup): ask before deleting a race or a session (1.54.1)
This commit is contained in:
1 parent
d0248b1960
commit
8b625c3d64
7 files changed
+27
-3
No files matched your search
@@ -371,6 +371,7 @@ export function renderEventManagerView(context) {
|
||||
}));
|
||||
|
||||
document.getElementById(`session-delete-${s.id}`)?.addEventListener("click", () => {
|
||||
if (!window.confirm(t("events.delete_session_confirm", { name: s.name }))) return;
|
||||
state.sessions = state.sessions.filter((x) => x.id !== s.id);
|
||||
delete state.resultsBySession[s.id];
|
||||
if (state.activeSessionId === s.id) {
|
||||
|
||||
Reference in new issue
Block a user