Add tooltips.

This commit is contained in:
Dermot Duffy
2021-08-10 20:30:21 -07:00
parent 6b9af9b6d3
commit 73f2206c8a
+4 -2
View File
@@ -1,7 +1,5 @@
// TODO Add material tooltips
// TODO Action handlers. // TODO Action handlers.
// TODO Make editor work. // TODO Make editor work.
// TODO Try nav popout menu.
// TODO Explore webrtc support. // TODO Explore webrtc support.
// TODO Add documentation & screenshots. // TODO Add documentation & screenshots.
@@ -345,6 +343,7 @@ export class FrigateCard extends LitElement {
<ha-icon-button <ha-icon-button
class="button" class="button"
icon="mdi:cctv" icon="mdi:cctv"
data-toggle="tooltip" title="View live"
@click=${() => { @click=${() => {
this._controlVideos({stop: true, control_clip: true}); this._controlVideos({stop: true, control_clip: true});
this._controlVideos({stop: false, control_live: true}); this._controlVideos({stop: false, control_live: true});
@@ -354,6 +353,7 @@ export class FrigateCard extends LitElement {
<ha-icon-button <ha-icon-button
class="button" class="button"
icon = "mdi:filmstrip" icon = "mdi:filmstrip"
data-toggle="tooltip" title="View clips"
@click=${() => { @click=${() => {
this._controlVideos({stop: true, control_live: true}); this._controlVideos({stop: true, control_live: true});
this._viewMode = FrigateCardView.CLIPS this._viewMode = FrigateCardView.CLIPS
@@ -362,6 +362,7 @@ export class FrigateCard extends LitElement {
<ha-icon-button <ha-icon-button
class="button" class="button"
icon = "mdi:camera" icon = "mdi:camera"
data-toggle="tooltip" title="View snapshots"
@click=${() => { @click=${() => {
this._controlVideos({stop: true, control_clip: true, control_live: true}); this._controlVideos({stop: true, control_clip: true, control_live: true});
this._viewMode = FrigateCardView.SNAPSHOTS this._viewMode = FrigateCardView.SNAPSHOTS
@@ -432,6 +433,7 @@ export class FrigateCard extends LitElement {
this._viewMode == FrigateCardView.LIVE ? 'visible' : 'invisible'} this._viewMode == FrigateCardView.LIVE ? 'visible' : 'invisible'}
"> ">
<ha-icon-button <ha-icon-button
data-toggle="tooltip" title="View motion sensor"
class="button" class="button"
icon="${icon}" icon="${icon}"
></ha-icon-button> ></ha-icon-button>