mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 13:57:21 +00:00
Show correct cursor if tap_action
is set to "none" (#10963)
This commit is contained in:
parent
1f7d4c25d4
commit
50c397901b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user