Show correct cursor if tap_action is set to "none" (#10963)

This commit is contained in:
Philip Allgaier 2021-12-20 10:26:02 +01:00 committed by GitHub
parent 1f7d4c25d4
commit 50c397901b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,11 @@ class HuiGenericEntityRow extends LitElement {
}
const domain = computeDomain(this.config.entity);
// By default, we always show a pointer, since if there is no explicit configuration provided,
// the frontend always assumes "more-info" in the action handler. We only need to hide the pointer
// if the tap action is explicitly set to "none".
const pointer = !(
this.config.tap_action && this.config.tap_action.action !== "none"
this.config.tap_action && this.config.tap_action.action === "none"
);
const hasSecondary = this.secondaryText || this.config.secondary_info;