@dcrackel/hematournamentui 1.0.369 → 1.0.370
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36209,8 +36209,8 @@ const wL = /* @__PURE__ */ ie(mL, [["render", vL], ["__scopeId", "data-v-755be0f
|
|
|
36209
36209
|
},
|
|
36210
36210
|
handleSubmitBout(n) {
|
|
36211
36211
|
this.showEditBoutModal = !1, this.showDirectorModal = !1;
|
|
36212
|
-
let e = this.activeBouts.find((t) => t.BoutId === n.BoutId);
|
|
36213
|
-
e
|
|
36212
|
+
let e = this.activeBouts.find((t) => t.BoutId === n.BoutId) || { ...n, score1: n.score1 ?? 0, score2: n.score2 ?? 0 };
|
|
36213
|
+
e.score1 = n.score1 ?? e.score1, e.score2 = n.score2 ?? e.score2, Object.assign(e, n), e.Status = "Completed", e.Ended = (/* @__PURE__ */ new Date()).toISOString(), console.log("--Bracket SUBMIT BOUT--", e), this.$emit("submit:bout", e);
|
|
36214
36214
|
},
|
|
36215
36215
|
directBout(n) {
|
|
36216
36216
|
n.Person1.PersonId === 0 || n.Person2.PersonId === 0 || (n.Status = "Active", this.showDirectorModal = !0, this.selectedBout = n, this.$emit("update:directing-bout", n));
|