@dcrackel/hematournamentui 1.0.103 → 1.0.105
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.
|
@@ -29982,7 +29982,22 @@ const qR = /* @__PURE__ */ ke(UR, [["render", jR]]), YR = {
|
|
|
29982
29982
|
selectedFlight: "Flight1"
|
|
29983
29983
|
};
|
|
29984
29984
|
},
|
|
29985
|
+
created() {
|
|
29986
|
+
console.log(`mode: ${this.mode}`);
|
|
29987
|
+
},
|
|
29985
29988
|
computed: {
|
|
29989
|
+
shouldShowButtons() {
|
|
29990
|
+
return this.filteredPools.length > 1 && this.mode !== "completed";
|
|
29991
|
+
},
|
|
29992
|
+
shouldShowResetButton() {
|
|
29993
|
+
return this.mode === "planning" || this.mode === "preparation";
|
|
29994
|
+
},
|
|
29995
|
+
shouldShowStartCheckinButton() {
|
|
29996
|
+
return this.mode === "planning";
|
|
29997
|
+
},
|
|
29998
|
+
shouldShowGoLiveButton() {
|
|
29999
|
+
return this.mode === "preparation";
|
|
30000
|
+
},
|
|
29986
30001
|
flights() {
|
|
29987
30002
|
const n = this.event.Flights || 0, e = Array.from({ length: n }, (t, r) => ({
|
|
29988
30003
|
id: `Flight${r + 1}`,
|
|
@@ -30115,8 +30130,8 @@ function _R(n, e, t, r, i, o) {
|
|
|
30115
30130
|
])
|
|
30116
30131
|
])) : Y("", !0)
|
|
30117
30132
|
], 2),
|
|
30118
|
-
o.
|
|
30119
|
-
|
|
30133
|
+
o.shouldShowButtons ? (Q(), x("div", XR, [
|
|
30134
|
+
o.shouldShowResetButton ? (Q(), ve(c, {
|
|
30120
30135
|
key: 0,
|
|
30121
30136
|
label: "Reset Pools",
|
|
30122
30137
|
size: "md",
|
|
@@ -30127,7 +30142,7 @@ function _R(n, e, t, r, i, o) {
|
|
|
30127
30142
|
class: "max-w-96 justify-self-end",
|
|
30128
30143
|
onClick: o.handleReset
|
|
30129
30144
|
}, null, 8, ["onClick"])) : Y("", !0),
|
|
30130
|
-
|
|
30145
|
+
o.shouldShowStartCheckinButton ? (Q(), ve(c, {
|
|
30131
30146
|
key: 1,
|
|
30132
30147
|
label: "Start Checkin",
|
|
30133
30148
|
size: "md",
|
|
@@ -30138,7 +30153,7 @@ function _R(n, e, t, r, i, o) {
|
|
|
30138
30153
|
class: "max-w-96 justify-self-start",
|
|
30139
30154
|
onClick: o.handleStart
|
|
30140
30155
|
}, null, 8, ["onClick"])) : Y("", !0),
|
|
30141
|
-
|
|
30156
|
+
o.shouldShowGoLiveButton ? (Q(), ve(c, {
|
|
30142
30157
|
key: 2,
|
|
30143
30158
|
label: "Make Pools Live",
|
|
30144
30159
|
size: "md",
|