Closed jsheunis closed 9 months ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
f91d4c2
) 86.19% compared to head (4c87105
) 86.19%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR:
The additions introduce changes to html (to show and hide the back button), to css (for the back button styling together with home button and dataset title), and to JS. The latter handles logic for when to show and hide the back button. Upon
create()
the superdataset file is fetched in order to store the id and version on the component, and the back button is hidden. Upon internal navigation (usingbeforeRouteUpdate()
), the JS checks if the route that is navigated to is the same as the home page by comparing the new id and version to the stored super id and version. If they are different, show the back button; if they are the same, hide the back button.