From 36e379aa4dca306d5e5dc821921910971484a41b Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Mon, 13 Feb 2023 22:11:36 -0800 Subject: [PATCH] Additionnal rename fixes. --- README.md | 8 ++++---- src/card.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 843ac416..cd9857e2 100644 --- a/README.md +++ b/README.md @@ -561,7 +561,7 @@ See the [fully expanded media gallery configuration example](#config-expanded-me | Option | Default | Overridable | Description | | - | - | - | - | | `controls` | | :heavy_multiplication_x: | Configuration for the Media viewer controls. See below. | -| `actions` | | :heavy_multiplication_x: | Actions to use for all views that use the `event_gallery` (e.g. `clips`, `snapshots`, `recordings`). See [actions](#actions) below.| +| `actions` | | :heavy_multiplication_x: | Actions to use for all views that use the `media_gallery` (e.g. `clips`, `snapshots`, `recordings`). See [actions](#actions) below.| #### Media Gallery Controls: Filter @@ -582,7 +582,7 @@ media_gallery: All configuration is under: ```yaml -event_gallery: +media_gallery: controls: thumbnails: ``` @@ -1148,8 +1148,8 @@ view. | Configuration path | Views to which it refers | | - | - | | `view.actions` | All (may be overriden by the below) | +| `media_gallery.actions` | `clips`, `snapshots`, `recordings` | | `media_viewer.actions` | `clip`, `snapshot`, `recording` | -| `event_gallery.actions` | `clips`, `snapshots`, `recordings` | | `live.actions` | `live` | | `image.actions` | `image` | @@ -1616,7 +1616,7 @@ media_viewer: Reference: [Media Gallery Options](#media-gallery-options). ```yaml -event_gallery: +media_gallery: controls: filter: mode: 'right' diff --git a/src/card.ts b/src/card.ts index 3b2ce336..5d7e234b 100644 --- a/src/card.ts +++ b/src/card.ts @@ -1764,7 +1764,7 @@ class FrigateCard extends LitElement { if (this._view?.is('live')) { specificActions = this._getConfig().live.actions; } else if (this._view?.isGalleryView()) { - specificActions = this._getConfig().event_gallery?.actions; + specificActions = this._getConfig().media_gallery?.actions; } else if (this._view?.isViewerView()) { specificActions = this._getConfig().media_viewer.actions; } else if (this._view?.is('image')) { @@ -1893,7 +1893,7 @@ class FrigateCard extends LitElement { ? html`