Skip to content

Hide blank manufacturer names on Device details page#4543

Merged
bramkragten merged 2 commits into
home-assistant:devfrom
dmulcahey:dm/hide-by-when-blank
Jan 21, 2020
Merged

Hide blank manufacturer names on Device details page#4543
bramkragten merged 2 commits into
home-assistant:devfrom
dmulcahey:dm/hide-by-when-blank

Conversation

@dmulcahey
Copy link
Copy Markdown
Contributor

Fixes #4538

this.device.manufacturer
)}
</div>
${this.device.manufacturer && this.device.manufacturer !== ""
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

An empty string is falsy, so the first check is enough.

Comment thread src/panels/config/devices/device-detail/ha-device-card.ts Outdated
Co-Authored-By: Bram Kragten <mail@bramkragten.nl>
@bramkragten bramkragten merged commit 9c407ca into home-assistant:dev Jan 21, 2020
@lock lock Bot locked and limited conversation to collaborators Jan 24, 2020
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.

Hide blank manufacturer names on Device details page

4 participants