More info dialog plays nice again with History
This commit is contained in:
parent
4047bf0775
commit
c8cbb8ebb5
3 changed files with 4 additions and 19 deletions
|
@ -1,2 +1,2 @@
|
|||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||
VERSION = "3822abfa5abb0a8d60ddf434a2f341d5"
|
||||
VERSION = "f580c3369e5a44f71d3304dc0939ddd1"
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -40,7 +40,7 @@ Polymer(Polymer.mixin({
|
|||
},
|
||||
|
||||
ready: function() {
|
||||
this.listenToStores();
|
||||
this.listenToStores(true);
|
||||
},
|
||||
|
||||
detached: function() {
|
||||
|
@ -52,18 +52,9 @@ Polymer(Polymer.mixin({
|
|||
},
|
||||
|
||||
stateStoreChanged: function() {
|
||||
var newState;
|
||||
|
||||
if (!this.entityId) {
|
||||
newState = null;
|
||||
} else {
|
||||
newState = stateStore.get(this.entityId);
|
||||
}
|
||||
|
||||
console.log('state store changed');
|
||||
var newState = this.entityId ? stateStore.get(this.entityId) : null;
|
||||
|
||||
if (newState !== this.stateObj) {
|
||||
console.log("Setting new stateobj");
|
||||
this.stateObj = newState;
|
||||
}
|
||||
},
|
||||
|
@ -85,12 +76,6 @@ Polymer(Polymer.mixin({
|
|||
changeEntityId: function(entityId) {
|
||||
this.entityId = entityId;
|
||||
|
||||
if (!entityId) {
|
||||
this.stateObj = null;
|
||||
this.stateHistory = null;
|
||||
return;
|
||||
}
|
||||
|
||||
this.stateStoreChanged();
|
||||
this.stateHistoryStoreChanged();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue