-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Add last_updated tooltip to more info dialog #6926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
f59379a
53a30c4
568daf6
a7f7afd
85a6ef5
f7b5523
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | ||
| import "@polymer/paper-tooltip/paper-tooltip"; | ||
| /* eslint-plugin-disable lit */ | ||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | ||
| import { computeStateName } from "../../common/entity/compute_state_name"; | ||
|
|
@@ -74,10 +75,19 @@ class StateInfo extends PolymerElement { | |
|
|
||
| <template is="dom-if" if="[[inDialog]]"> | ||
| <div class="time-ago"> | ||
| <ha-relative-time | ||
| hass="[[hass]]" | ||
| datetime="[[stateObj.last_changed]]" | ||
| ></ha-relative-time> | ||
| <span> | ||
| <ha-relative-time | ||
| hass="[[hass]]" | ||
| datetime="[[stateObj.last_changed]]" | ||
| ></ha-relative-time> | ||
| <paper-tooltip animation-delay="0"> | ||
| [[localize('ui.dialogs.more_info_control.last_updated')]]: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This string doesn't exist yet? You have to add it to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added. one notice, even if string is added it doesn't show in my browser. Actually it doesn't show even if I use some other string like |
||
| <ha-relative-time | ||
| hass="[[hass]]" | ||
| datetime="[[stateObj.last_updated]]" | ||
| ></ha-relative-time> | ||
| </paper-tooltip> | ||
| </span> | ||
| </div> | ||
| </template> | ||
| <template is="dom-if" if="[[!inDialog]]"> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.