|
1 | 1 | <template> |
2 | 2 | <div class="team-overview"> |
3 | | - <h2> Team {{teamColor}}</h2> |
4 | | - <TeamName |
5 | | - :team-color="teamColor"/> |
6 | | - <TeamScore |
7 | | - :team-color="teamColor" |
8 | | - :score="team.goals" |
9 | | - /> |
10 | | - <TeamGoalie |
11 | | - :team-color="teamColor" |
12 | | - :goalie="team.goalie" |
13 | | - /> |
14 | | - <TeamTimeouts |
15 | | - :team-color="teamColor" |
16 | | - :timeouts-left="team.timeoutsLeft" |
17 | | - :timeout-time-left="team.timeoutTimeLeft" |
18 | | - /> |
19 | | - <TeamCards |
20 | | - :team-color="teamColor" |
21 | | - :yellow-cards="team.yellowCards" |
22 | | - :red-cards="team.redCards" |
23 | | - :yellow-card-times="team.yellowCardTimes" |
24 | | - /> |
25 | | - <TeamHalf |
26 | | - :team-color="teamColor" |
27 | | - /> |
| 3 | + <h2 v-b-tooltip.hover title="Edit team data by double-clicking a value"> Team {{teamColor}}</h2> |
| 4 | + <div> |
| 5 | + <TeamName |
| 6 | + :team-color="teamColor"/> |
| 7 | + </div> |
| 8 | + <div> |
| 9 | + <TeamScore |
| 10 | + :team-color="teamColor" |
| 11 | + :score="team.goals"/> |
| 12 | + </div> |
| 13 | + <div> |
| 14 | + <TeamGoalie |
| 15 | + :team-color="teamColor" |
| 16 | + :goalie="team.goalie"/> |
| 17 | + </div> |
| 18 | + <div> |
| 19 | + <TeamHalf |
| 20 | + :team-color="teamColor"/> |
| 21 | + </div> |
| 22 | + <div> |
| 23 | + <TeamTimeouts |
| 24 | + :team-color="teamColor" |
| 25 | + :timeouts-left="team.timeoutsLeft" |
| 26 | + :timeout-time-left="team.timeoutTimeLeft"/> |
| 27 | + </div> |
| 28 | + <div> |
| 29 | + <TeamRedCards |
| 30 | + :team-color="teamColor" |
| 31 | + :red-cards="team.redCards"/> |
| 32 | + </div> |
| 33 | + <div> |
| 34 | + <TeamYellowCards |
| 35 | + :team-color="teamColor" |
| 36 | + :yellow-cards="team.yellowCards" |
| 37 | + :yellow-card-times="team.yellowCardTimes"/> |
| 38 | + </div> |
28 | 39 | </div> |
29 | 40 | </template> |
30 | 41 |
|
31 | 42 | <script> |
32 | 43 | import TeamScore from "./TeamScore"; |
33 | 44 | import TeamTimeouts from "./TeamTimeouts"; |
34 | 45 | import TeamGoalie from "./TeamGoalie"; |
35 | | - import TeamCards from "./TeamCards"; |
36 | 46 | import EditableLabelText from "../common/EditableLabelText"; |
37 | 47 | import TeamHalf from "./TeamHalf"; |
38 | 48 | import TeamName from "./TeamName"; |
| 49 | + import TeamYellowCards from "./TeamYellowCards"; |
| 50 | + import TeamRedCards from "./TeamRedCards"; |
39 | 51 |
|
40 | 52 | export default { |
41 | 53 | name: "TeamOverview", |
42 | | - components: {TeamName, TeamHalf, EditableLabelText, TeamGoalie, TeamTimeouts, TeamScore, TeamCards}, |
| 54 | + components: { |
| 55 | + TeamRedCards, |
| 56 | + TeamYellowCards, |
| 57 | + TeamName, TeamHalf, EditableLabelText, TeamGoalie, TeamTimeouts, TeamScore |
| 58 | + }, |
43 | 59 | props: { |
44 | 60 | teamColor: String |
45 | 61 | }, |
|
0 commit comments