@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.
package/package.json
CHANGED
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
</div>
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
|
-
<div v-if="
|
|
34
|
-
<BaseButton v-if="
|
|
35
|
-
<BaseButton v-if="
|
|
36
|
-
<BaseButton v-if="
|
|
33
|
+
<div v-if="shouldShowButtons" class="grid grid-cols-2 gap-4 mx-8 mt-8 center">
|
|
34
|
+
<BaseButton v-if="shouldShowResetButton" label="Reset Pools" size="md" icon-name="fa-rotate-right" icon-style="fa-solid" type="graySecondary" :icon-left="true" class="max-w-96 justify-self-end" @click="handleReset" />
|
|
35
|
+
<BaseButton v-if="shouldShowStartCheckinButton" label="Start Checkin" size="md" icon-name="fa-caret-right" icon-style="fa-solid" type="secondary" :icon-left="false" class="max-w-96 justify-self-start" @click="handleStart" />
|
|
36
|
+
<BaseButton v-if="shouldShowGoLiveButton" label="Make Pools Live" size="md" icon-name="fa-caret-right" icon-style="fa-solid" type="secondary" :icon-left="false" class="max-w-96 justify-self-start" @click="handleGoLive" />
|
|
37
37
|
</div>
|
|
38
38
|
</section>
|
|
39
39
|
</template>
|
|
@@ -84,7 +84,22 @@ export default {
|
|
|
84
84
|
selectedFlight: 'Flight1'
|
|
85
85
|
};
|
|
86
86
|
},
|
|
87
|
+
created() {
|
|
88
|
+
console.log(`mode: ${this.mode}`);
|
|
89
|
+
},
|
|
87
90
|
computed: {
|
|
91
|
+
shouldShowButtons() {
|
|
92
|
+
return this.filteredPools.length > 1 && this.mode !== 'completed';
|
|
93
|
+
},
|
|
94
|
+
shouldShowResetButton() {
|
|
95
|
+
return this.mode === 'planning' || this.mode === 'preparation';
|
|
96
|
+
},
|
|
97
|
+
shouldShowStartCheckinButton() {
|
|
98
|
+
return this.mode === 'planning';
|
|
99
|
+
},
|
|
100
|
+
shouldShowGoLiveButton() {
|
|
101
|
+
return this.mode === 'preparation';
|
|
102
|
+
},
|
|
88
103
|
flights() {
|
|
89
104
|
const numberOfFlights = this.event.Flights || 0;
|
|
90
105
|
const flightTabs = Array.from({ length: numberOfFlights }, (_, index) => ({
|