Skip to content

Commit

Permalink
🎉 Improve scenario activation and selection.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasGilg committed Nov 6, 2024
1 parent 4239d97 commit 632ab21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/docs/changelog/changelog-de.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ SPDX-License-Identifier: CC-BY-4.0
### Verbesserungen

- Es wurde mehr Übersetzungen für Szenarien hinzugefügt.
- Wenn ein deaktiviertes Scenario angeklickt wird, wird es automatisch aufgedeckt und selektiert.

### Fehlerbehebungen

Expand Down
1 change: 1 addition & 0 deletions frontend/docs/changelog/changelog-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ SPDX-License-Identifier: CC-BY-4.0
### Improvements

- Added translations for additional scenarios.
- If an inactive scenario is being clicked on it will automatically be revealed and selected.

### Bug fixes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ function MainCard({
onMouseEnter={() => setHover(true)}
onMouseLeave={() => setHover(false)}
onClick={() => {
if (activeScenario) {
setSelectedScenario(index);
if (!activeScenario) {
setActiveScenarios([...(activeScenarios ?? []), index]);
}
setSelectedScenario(index);
}}
>
<Box
Expand Down

0 comments on commit 632ab21

Please sign in to comment.