File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
frontend/src/components/match Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,15 @@ import {useMatchStateStore} from "@/store/matchState";
6
6
const store = useMatchStateStore ()
7
7
8
8
const gameEvents = computed (() => {
9
- return store .matchState .gameEvents
9
+ return store .matchState .gameEvents !
10
10
})
11
11
</script >
12
12
13
13
<template >
14
- <q-list bordered class =" rounded-borders" >
14
+ <q-list bordered class =" rounded-borders" v-if = " gameEvents.length > 0 " >
15
15
<GameEventItem :game-event =" gameEvent" v-for =" (gameEvent, key) in gameEvents" :key =" key" />
16
16
</q-list >
17
+ <div v-else >
18
+ No recent game events
19
+ </div >
17
20
</template >
Original file line number Diff line number Diff line change @@ -6,21 +6,20 @@ import {useMatchStateStore} from "@/store/matchState";
6
6
const store = useMatchStateStore ()
7
7
8
8
const proposalGroups = computed (() => {
9
- return store .matchState .proposalGroups
10
- })
11
-
12
- const hasGroups = computed (() => {
13
- return proposalGroups .value ! .length > 0
9
+ return store .matchState .proposalGroups !
14
10
})
15
11
</script >
16
12
17
13
<template >
18
- <q-list bordered class =" rounded-borders" v-if =" hasGroups " >
14
+ <q-list bordered class =" rounded-borders" v-if =" proposalGroups.length > 0 " >
19
15
<GameEventProposalGroupItem
20
16
:proposal-group =" group"
21
17
:group-id =" groupId"
22
18
v-for =" (group, groupId) in proposalGroups"
23
19
:key =" groupId"
24
20
/>
25
21
</q-list >
22
+ <div v-else >
23
+ No recent game event proposals
24
+ </div >
26
25
</template >
You can’t perform that action at this time.
0 commit comments