-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This improves the usability of the extra info toggle and makes it working properly with alternative routes. The state of the extra info visibility is now stored and reused for subsequent and alternative routes. This works for extra info sub categories as well (e.g. waytype=highway). If the selected/new route doesn't have that sub category, it falls back to the main extra info category (e.g. from displaying waytype=highway to waytype) Fixes two small issues: - opacity check not working correctly - active route index was kept when regenerating the route while using alternative routes Includes small refactoring.
- Loading branch information
Showing
9 changed files
with
79 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...omponents/place-and-directions/components/route-details/components/extras/RouteExtras.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...nts/place-and-directions/components/route-details/components/extras/route-extras.store.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const state = { | ||
extraHighlight: {} | ||
} | ||
|
||
const getters = { | ||
extraHighlight: state => { | ||
return state.extraHighlight | ||
} | ||
} | ||
|
||
const mutations = { | ||
extraHighlight: (state, extraHighlight) => { | ||
state.extraHighlight = extraHighlight | ||
} | ||
} | ||
|
||
const actions = { | ||
} | ||
|
||
export default { | ||
state, | ||
getters, | ||
mutations, | ||
actions | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters