Skip to content

Commit

Permalink
Change owners to array as well #62
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Sep 13, 2021
1 parent c88f9ae commit 0d3bc12
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/src/views/Team.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default {
computed: {
team() {
return ReactiveRoot(this.id, {
owner: ReactiveThing("owner"),
owners: ReactiveArray("owners"),
captains: ReactiveArray("captains"),
players: ReactiveArray("players"),
theme: ReactiveThing("theme"),
Expand Down
2 changes: 1 addition & 1 deletion website/src/views/sub-views/TeamDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
},
people() {
return [
...(this._team?.owner ? [this._team?.owner] : []),
...this._team?.owners || [],
...this._team?.captains || [],
...this._team?.staff || [],
...this._team?.players || []
Expand Down
5 changes: 3 additions & 2 deletions website/src/views/sub-views/TeamMain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
<ContentThing :thing="accolade" type="event" :link-to="accolade.event" :theme="accolade.event && accolade.event.theme" v-for="accolade in team.accolades"
v-bind:key="accolade.id" :show-logo="true" :text="accolade.name" />
</ContentRow>
<ContentRow v-if="team.owner" title="Owner">
<ContentThing type="player" :text="team.owner.name" :thing="team.owner" :theme="team.theme"></ContentThing>
<ContentRow v-if="team.owners" :title="team.owners.length === 1 ? 'Owner' : 'Owners'">
<ContentThing v-for="owner in team.owners" v-bind:key="owner.id"
type="player" :text="owner.name" :thing="owner" :theme="team.theme"></ContentThing>
</ContentRow>
<ContentRow v-if="team.captains" :title="team.captains.length === 1 ? 'Captain' : 'Captains'">
<ContentThing v-for="captain in team.captains" v-bind:key="captain.id"
Expand Down

0 comments on commit 0d3bc12

Please sign in to comment.