The source project of this merge request has been removed.
index.js: fix switching between versions
When a model is selected and the versions is changed, then this only works when the title of a model stays the same.
-
index.js: fix model selection on version change
In OpenWrt, model titles, model id and the target names might change. To allow a better experience when the version changes, we now search for id/target and title.
-
index.js: clear url parameters when no model was found
Use history.replaceState(). This makes the states easier to handle and stack up when it is not part of a valid ui interaction.
Edited by mwarning