Add cameras button to editor.
This commit is contained in:
+10
-6
@@ -8,7 +8,7 @@ import {
|
|||||||
getConfigValue,
|
getConfigValue,
|
||||||
isConfigUpgradeable,
|
isConfigUpgradeable,
|
||||||
setConfigValue,
|
setConfigValue,
|
||||||
upgradeConfig,
|
upgradeConfig
|
||||||
} from './config-mgmt.js';
|
} from './config-mgmt.js';
|
||||||
import {
|
import {
|
||||||
CONF_CAMERAS,
|
CONF_CAMERAS,
|
||||||
@@ -84,7 +84,7 @@ import {
|
|||||||
CONF_VIEW_TIMEOUT_SECONDS,
|
CONF_VIEW_TIMEOUT_SECONDS,
|
||||||
CONF_VIEW_UPDATE_CYCLE_CAMERA,
|
CONF_VIEW_UPDATE_CYCLE_CAMERA,
|
||||||
CONF_VIEW_UPDATE_FORCE,
|
CONF_VIEW_UPDATE_FORCE,
|
||||||
CONF_VIEW_UPDATE_SECONDS,
|
CONF_VIEW_UPDATE_SECONDS
|
||||||
} from './const.js';
|
} from './const.js';
|
||||||
import { localize } from './localize/localize.js';
|
import { localize } from './localize/localize.js';
|
||||||
import frigate_card_editor_style from './scss/editor.scss';
|
import frigate_card_editor_style from './scss/editor.scss';
|
||||||
@@ -95,7 +95,7 @@ import {
|
|||||||
RawFrigateCardConfig,
|
RawFrigateCardConfig,
|
||||||
RawFrigateCardConfigArray,
|
RawFrigateCardConfigArray,
|
||||||
THUMBNAIL_WIDTH_MAX,
|
THUMBNAIL_WIDTH_MAX,
|
||||||
THUMBNAIL_WIDTH_MIN,
|
THUMBNAIL_WIDTH_MIN
|
||||||
} from './types.js';
|
} from './types.js';
|
||||||
import { arrayMove } from './utils/basic.js';
|
import { arrayMove } from './utils/basic.js';
|
||||||
import { getCameraID, getCameraTitle } from './utils/camera.js';
|
import { getCameraID, getCameraTitle } from './utils/camera.js';
|
||||||
@@ -1000,9 +1000,13 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor
|
|||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<div class="submenu">
|
<div class="submenu">
|
||||||
${this._renderMenuButton('frigate')} ${this._renderMenuButton('live')}
|
${this._renderMenuButton('frigate') /* */}
|
||||||
${this._renderMenuButton('clips')} ${this._renderMenuButton('snapshots')}
|
${this._renderMenuButton('cameras') /* */}
|
||||||
${this._renderMenuButton('image')} ${this._renderMenuButton('download')}
|
${this._renderMenuButton('live') /* */}
|
||||||
|
${this._renderMenuButton('clips') /* */}
|
||||||
|
${this._renderMenuButton('snapshots')}
|
||||||
|
${this._renderMenuButton('image') /* */}
|
||||||
|
${this._renderMenuButton('download')}
|
||||||
${this._renderMenuButton('frigate_ui')}
|
${this._renderMenuButton('frigate_ui')}
|
||||||
${this._renderMenuButton('fullscreen')}
|
${this._renderMenuButton('fullscreen')}
|
||||||
${this._renderMenuButton('timeline')}
|
${this._renderMenuButton('timeline')}
|
||||||
|
|||||||
@@ -174,6 +174,7 @@
|
|||||||
"menu": {
|
"menu": {
|
||||||
"buttons": {
|
"buttons": {
|
||||||
"frigate": "Frigate menu / Default view",
|
"frigate": "Frigate menu / Default view",
|
||||||
|
"cameras": "Cameras",
|
||||||
"live": "Live",
|
"live": "Live",
|
||||||
"media_player": "Send to media player",
|
"media_player": "Send to media player",
|
||||||
"clips": "Clips",
|
"clips": "Clips",
|
||||||
|
|||||||
Reference in New Issue
Block a user