-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add routes for home page tabs #2074
Conversation
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great! The much-requested feature I was referring to was #866 - have a way to show the locations tab for those who don't configure an overview page.
While it doesn't address the issue completely it's a good step forward as they could just open /locations
if they want.
If we choose not to have a setting to configure the default initial tab, changing the tab would set a openhab.ui:home.lastHomePageTab
local storage setting so the last accessed tab would be restored if they hit the root URL - this PR has made it easier.
In any case it's a nice improvement as it is.
Adds routes for `/overview`, `/locations`, `/equipment` and `/properties` so a home page reload keeps the tab and routing to individual tabs is possible. --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Signed-off-by: jgeorgi <justin.georgi@gmail.com>
Adds routes for `/overview`, `/locations`, `/equipment` and `/properties` so a home page reload keeps the tab and routing to individual tabs is possible. --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Signed-off-by: jgeorgi <justin.georgi@gmail.com>
Adds routes for `/overview`, `/locations`, `/equipment` and `/properties` so a home page reload keeps the tab and routing to individual tabs is possible. --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Fixes openhab#2196. Reverts openhab#2074. I have tried messing around with the browser history manually to fix that issue, however trying several approaches, none worked perfect. This is the best solution I could come up with, it at least remembers which tab you had opened when you navigate back to the home page from any other page. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Adds routes for
/overview
,/locations
,/equipment
and/properties
so a home page reload keeps the tab and routing to individual tabs is possible.