@dcrackel/hematournamentui 1.0.362 → 1.0.365

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.
@@ -36124,13 +36124,13 @@ const vL = /* @__PURE__ */ ie(fL, [["render", QL], ["__scopeId", "data-v-755be0f
36124
36124
  },
36125
36125
  computed: {
36126
36126
  bracketSize() {
36127
- return this.bouts && this.bouts.length > 0 && this.bouts[0].RoundLabel ? this.bouts[0].RoundLabel : "";
36127
+ return this.boutsData && this.boutsData.length > 0 && this.boutsData[0].RoundLabel ? this.boutsData[0].RoundLabel : "";
36128
36128
  },
36129
36129
  activeBouts() {
36130
- return this.bouts.filter((n) => n.Status === "Active");
36130
+ return this.boutsData.filter((n) => n.Status === "Active");
36131
36131
  },
36132
36132
  sortedBouts() {
36133
- return this.bouts.sort((n, e) => n.DEBoutId < e.DEBoutId ? -1 : n.DEBoutId > e.DEBoutId ? 1 : 0);
36133
+ return this.boutsData.sort((n, e) => n.DEBoutId < e.DEBoutId ? -1 : n.DEBoutId > e.DEBoutId ? 1 : 0);
36134
36134
  }
36135
36135
  },
36136
36136
  data() {
@@ -36150,27 +36150,23 @@ const vL = /* @__PURE__ */ ie(fL, [["render", QL], ["__scopeId", "data-v-755be0f
36150
36150
  { id: "Final", label: "Final Results", color: "primaryHighlight" }
36151
36151
  ],
36152
36152
  viewName: "Tableau",
36153
- largeCards: !0
36153
+ largeCards: !0,
36154
+ boutsData: [...this.bouts]
36154
36155
  };
36155
36156
  },
36156
36157
  watch: {
36157
36158
  bouts: {
36158
- handler() {
36159
- this.$forceUpdate();
36159
+ handler(n) {
36160
+ this.boutsData = [...n];
36160
36161
  },
36161
- deep: !0
36162
+ deep: !0,
36163
+ immediate: !0
36162
36164
  }
36163
36165
  },
36164
36166
  methods: {
36165
- updateBoutStatus(n) {
36166
- return {
36167
- ...n,
36168
- customStatus: n.Status
36169
- };
36170
- },
36171
36167
  handleCloseModal(n) {
36172
36168
  if (this.showDirectorModal = !1, this.showEditBoutModal = !1, n.Status !== "Completed") {
36173
- const e = this.bouts.find((t) => t.BoutId === n.BoutId);
36169
+ const e = this.boutsData.find((t) => t.BoutId === n.BoutId);
36174
36170
  e && (e.Status = "Scheduled", e.Score1 = 0, e.Score2 = 0), this.$emit("update:bout", e);
36175
36171
  }
36176
36172
  },
@@ -36188,7 +36184,7 @@ const vL = /* @__PURE__ */ ie(fL, [["render", QL], ["__scopeId", "data-v-755be0f
36188
36184
  },
36189
36185
  handleSubmitBout(n) {
36190
36186
  this.showEditBoutModal = !1, this.showDirectorModal = !1;
36191
- const e = this.bouts.find((t) => t.BoutId === n.BoutId);
36187
+ const e = this.boutsData.find((t) => t.BoutId === n.BoutId);
36192
36188
  Object.assign(e, n), e.Status = "Completed", e.Ended = (/* @__PURE__ */ new Date()).toISOString(), this.$emit("submit:bout", e);
36193
36189
  },
36194
36190
  directBout(n) {