Open more info as default action in entity heading badge

This commit is contained in:
Paul Bottein 2024-09-30 11:08:26 +02:00
parent b6efedfc8d
commit 29a638c56e
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@ export class HuiHeadingEntityEditor
name: "tap_action", name: "tap_action",
selector: { selector: {
ui_action: { ui_action: {
default_action: "none", default_action: "more-info",
}, },
}, },
}, },

View File

@ -43,7 +43,7 @@ export class HuiEntityHeadingBadge
this._config = { this._config = {
...DEFAULT_CONFIG, ...DEFAULT_CONFIG,
tap_action: { tap_action: {
action: "none", action: "more-info",
}, },
...config, ...config,
}; };
@ -52,7 +52,7 @@ export class HuiEntityHeadingBadge
private _handleAction(ev: ActionHandlerEvent) { private _handleAction(ev: ActionHandlerEvent) {
const config: EntityHeadingBadgeConfig = { const config: EntityHeadingBadgeConfig = {
tap_action: { tap_action: {
action: "none", action: "more-info",
}, },
...this._config!, ...this._config!,
}; };