@dcrackel/hematournamentui 1.0.101 → 1.0.103

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcrackel/hematournamentui",
3
3
  "private": false,
4
- "version": "1.0.101",
4
+ "version": "1.0.103",
5
5
  "type": "module",
6
6
  "main": "dist/HemaTournamentUI-lib.umd.js",
7
7
  "module": "dist/HemaTournamentUI-lib.es.js",
@@ -109,7 +109,7 @@ export default {
109
109
  });
110
110
  },
111
111
  clubLogoURL(person) {
112
- const portrait = person.Person.Club.Images[0] || [];
112
+ const portrait = person?.Person?.Club?.Images?.[0] || null;
113
113
  return portrait ? portrait.url : '';
114
114
  },
115
115
  handleSelectedItem(event){
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <section>
3
3
  <EditEventsTopMenu :currentTab="'Pools'" :tabs="tabs" @tabMenuClick="handleTabMenuClick"/>
4
- <PoolSummary :event="event" @update:poolSize="handlePoolSizeChange" @update:numberOfRings="handleNumberOfRings" @reset:pool="handlePoolReset" :mode="mode"/>
4
+ <PoolSummary :mode="mode" :event="event" @update:poolSize="handlePoolSizeChange" @update:numberOfRings="handleNumberOfRings" @reset:pool="handlePoolReset" />
5
5
  <EditEventsTopMenu v-if="this.event.Flights > 1" :currentTab="selectedFlight" :tabs="flights" @tabMenuClick="handleFlightChange" class="mt-3"/>
6
6
 
7
7
  <div class="w-full flex flex-row flex-wrap justify-center" :class="this.event.Flights > 1 ? 'mt-0' : 'mt-4'">
@@ -30,8 +30,7 @@
30
30
  </div>
31
31
  </div>
32
32
 
33
- {{ mode }} {{ filteredPools.length}}
34
- <div v-if="filteredPools.length > 1 && mode !== 'complete'" class="grid grid-cols-2 gap-4 mx-8 mt-8">
33
+ <div v-if="filteredPools.length > 1 && mode !== 'complete'" class="grid grid-cols-2 gap-4 mx-8 mt-8 center">
35
34
  <BaseButton v-if="mode === 'planning' || mode === 'preparation'" 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" />
36
35
  <BaseButton v-if="mode === 'planning'" 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" />
37
36
  <BaseButton v-if="mode === 'preparation'" 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" />