Rename expand_toggle action to expand.
This commit is contained in:
+2
-2
@@ -634,7 +634,7 @@ class FrigateCard extends LitElement {
|
||||
type: 'custom:frigate-card-menu-icon',
|
||||
title: localize('config.menu.buttons.expand'),
|
||||
tap_action: createFrigateCardCustomAction(
|
||||
'expand_toggle',
|
||||
'expand',
|
||||
) as FrigateCardCustomAction,
|
||||
style: this._expand ? this._getEmphasizedStyle() : {},
|
||||
});
|
||||
@@ -1497,7 +1497,7 @@ class FrigateCard extends LitElement {
|
||||
case 'diagnostics':
|
||||
this._diagnostics();
|
||||
break;
|
||||
case 'expand_toggle':
|
||||
case 'expand':
|
||||
this._setExpand(!this._expand);
|
||||
break;
|
||||
default:
|
||||
|
||||
+1
-1
@@ -216,7 +216,7 @@ const FRIGATE_CARD_GENERAL_ACTIONS = [
|
||||
'clips',
|
||||
'default',
|
||||
'diagnostics',
|
||||
'expand_toggle',
|
||||
'expand',
|
||||
'download',
|
||||
'fullscreen',
|
||||
'image',
|
||||
|
||||
@@ -31,7 +31,7 @@ export const getActionsFromQueryString = (): FrigateCardCustomAction[] => {
|
||||
case 'default':
|
||||
case 'diagnostics':
|
||||
case 'download':
|
||||
case 'expand_toggle':
|
||||
case 'expand':
|
||||
case 'image':
|
||||
case 'live':
|
||||
case 'menu_toggle':
|
||||
|
||||
Reference in New Issue
Block a user