Skip to content
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

Reorder configuration #10817

Merged
merged 2 commits into from
Dec 6, 2021
Merged

Reorder configuration #10817

merged 2 commits into from
Dec 6, 2021

Conversation

ludeeus
Copy link
Member

@ludeeus ludeeus commented Dec 6, 2021

@bramkragten
Copy link
Member

What needs to be done for this still? Should we wait on it for a release or not?

protected render(): TemplateResult {
return html`
${this.pages.map((page) =>
canShowPage(this.hass, page)
(
page.path === "#external-app-configuration"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Suggested change
page.path === "#external-app-configuration"
page.component === "mobile_app"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, your instance have the integration loaded, but this should only show if you are visiting from a app

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this still does that?

Comment on lines +88 to +90
ev.currentTarget.parentElement.href.endsWith(
"#external-app-configuration"
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I like this, the url will stay changed, and it adds a entry to the history...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how it used to be, but in ha-sidebar

@@ -77,6 +84,16 @@ class HaConfigNavigation extends LitElement {

private _entryClicked(ev) {
ev.currentTarget.blur();
if (
ev.currentTarget.parentElement.href.endsWith(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ev.currentTarget.parentElement.href.endsWith(
ev.currentTarget.component === "mobile_app"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@balloob balloob marked this pull request as ready for review December 6, 2021 23:10
@balloob balloob merged commit 5c78b74 into dev Dec 6, 2021
@balloob balloob deleted the configuration branch December 6, 2021 23:10
@balloob balloob mentioned this pull request Dec 6, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants