Render history after dialog has opened

This commit is contained in:
Paulus Schoutsen 2017-01-30 00:03:05 -08:00
parent 5792c77100
commit b9cf35cced

View File

@ -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;