mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Render history after dialog has opened
This commit is contained in:
parent
5792c77100
commit
b9cf35cced
@ -56,7 +56,7 @@
|
|||||||
state-obj="[[stateObj]]"
|
state-obj="[[stateObj]]"
|
||||||
hass='[[hass]]' in-dialog></state-card-content>
|
hass='[[hass]]' in-dialog></state-card-content>
|
||||||
</h2>
|
</h2>
|
||||||
<template is='dom-if' if="[[showHistoryComponent]]">
|
<template is='dom-if' if="[[showHistoryComponent]]" restamp>
|
||||||
<div>
|
<div>
|
||||||
<ha-state-history-data
|
<ha-state-history-data
|
||||||
hass='[[hass]]'
|
hass='[[hass]]'
|
||||||
@ -180,7 +180,7 @@ Polymer({
|
|||||||
|
|
||||||
dialogOpenChanged: function (newVal) {
|
dialogOpenChanged: function (newVal) {
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
this.async(function () { this.delayedDialogOpen = true; }.bind(this), 10);
|
this.async(function () { this.delayedDialogOpen = true; }.bind(this), 100);
|
||||||
} else if (!newVal && this.stateObj) {
|
} else if (!newVal && this.stateObj) {
|
||||||
this.fire('hass-more-info', { entityId: null });
|
this.fire('hass-more-info', { entityId: null });
|
||||||
this.delayedDialogOpen = false;
|
this.delayedDialogOpen = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user