feat(houseofrc): preview and send results to the event's entries, heats or final placings (1.83.0)
This commit is contained in:
1 parent
f4a62b92d2
commit
ebdc6104e6
17 files changed
+295
-15
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { openHouseOfRcEntryRefresh } from "./houseofrc_view.js";
|
||||
import { openHouseOfRcEntryRefresh, openHouseOfRcResultsPost } from "./houseofrc_view.js";
|
||||
import { mountSponsorSetup } from "./sponsor_event_view.js";
|
||||
import { mountTeamRaceSetup } from "./team_race_setup_view.js";
|
||||
import { orderSessionsForRunning, moveSessionInRunningOrder, applyFormatToPendingSessions, syncParticipantsToSessions } from "./event_race_logic.js";
|
||||
@@ -24,6 +24,7 @@ export function renderEventManagerView(context) {
|
||||
escapeHtml,
|
||||
normalizeEvent,
|
||||
normalizeDriver,
|
||||
getRaceOverview,
|
||||
ensureRaceParticipantsConfigured,
|
||||
getSessionsForEvent,
|
||||
getSelectedTeamEditId,
|
||||
@@ -613,6 +614,11 @@ export function renderEventManagerView(context) {
|
||||
},
|
||||
}));
|
||||
|
||||
// Race made from House of RC: preview and send the results to its entries.
|
||||
document.getElementById("houseOfRcSendResults")?.addEventListener("click", () => openHouseOfRcResultsPost({
|
||||
event, overview: getRaceOverview(event), state, t, escapeHtml, saveState,
|
||||
}));
|
||||
|
||||
document.getElementById("selectAllParticipants")?.addEventListener("click", () => {
|
||||
document.querySelectorAll(".race-participant").forEach((node) => {
|
||||
node.checked = true;
|
||||
|
||||
Reference in new issue
Block a user