Open Shiggiddie opened 10 years ago
Not exactly sure I understand this one correctly.
You're saying if you click on a given team in the box score then move to the advanced box score that the same team should be clicked there. Basically whatever team is selected in one tab is used in both. You don't want to have to click the same team twice to view their stats in both tabs?
Sorry for the delay in responding...
Your understanding is correct. I haven't dug into the repo, so forgive my naming convention.
When viewing a completed game, I am assuming you load either an array teams
with two team
objects, or load in two variables team1
and team2
, I'm going to go with the latter assumption for ease of explanation.
So currently on view load, both "BOX SCORE" and "ADVANCED BOX SCORE" by default have all of the players from team1
viewable to the user. If I go to team2
on "BOX SCORE" then go to "ADVANCED BOX SCORE", team1
's players will still be the default view.
Ultimately, this is fairly nit-picky. As an individual who doesn't track sports stats extensively, perhaps the intended user would very well want to go back to team1
when moving from "BOX SCORE" to "ADVANCED BOX SCORE". However if the use case would be more like the problem outlined above, then I would suggest implementing it.
Currently, the players loaded in "BOX SCORE" and "ADVANCED BOX SCORE" views are set to a default and maintain their state until new data loads.