Squash some frontend bugs

This commit is contained in:
Paulus Schoutsen 2015-02-13 22:50:49 -08:00
parent 7dd7c489e8
commit 791ebff7ee
3 changed files with 9 additions and 9 deletions

View File

@ -1,9 +1,9 @@
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/core-style/core-style.html">
<link rel="import" href="../bower_components/paper-dialog/paper-action-dialog.html">
<link rel="import" href="../bower_components/paper-dialog/paper-dialog.html">
<link rel="import" href="../bower_components/paper-dialog/paper-dialog-transition.html">
<polymer-element name="ha-action-dialog" extends="paper-action-dialog">
<polymer-element name="ha-dialog" extends="paper-dialog">
<template>
<core-style ref='ha-dialog'></core-style>
<shadow></shadow>

View File

@ -1,13 +1,13 @@
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="ha-action-dialog.html">
<link rel="import" href="ha-dialog.html">
<link rel="import" href="../cards/state-card-content.html">
<link rel="import" href="../components/state-timeline.html">
<link rel="import" href="../more-infos/more-info-content.html">
<polymer-element name="more-info-dialog">
<template>
<ha-action-dialog id="dialog">
<ha-dialog id="dialog">
<style>
.title-card {
margin-bottom: 24px;
@ -20,7 +20,7 @@
<state-timeline stateHistory="{{stateHistory}}"></state-timeline>
<more-info-content stateObj="{{stateObj}}"></more-info-content>
</div>
</ha-action-dialog>
</ha-dialog>
</template>
<script>

View File

@ -83,12 +83,12 @@
this.stopListeningToStores();
},
authChangeListener: function() {
this.isValidating = this.authStore.isValidating();
this.isLoggedIn = this.authStore.isLoggedIn();
authStoreChanged: function(authStore) {
this.isValidating = authStore.isValidating();
this.isLoggedIn = authStore.isLoggedIn();
this.spinnerMessage = this.isValidating ? this.MSG_VALIDATING : this.MSG_LOADING_DATA;
if (this.authStore.wasLastAttemptInvalid()) {
if (authStore.wasLastAttemptInvalid()) {
this.$.passwordDecorator.error = this.authStore.getLastAttemptMessage();
this.$.passwordDecorator.isInvalid = true;
}