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/polymer/polymer.html">
<link rel="import" href="../bower_components/core-style/core-style.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"> <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> <template>
<core-style ref='ha-dialog'></core-style> <core-style ref='ha-dialog'></core-style>
<shadow></shadow> <shadow></shadow>

View File

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

View File

@ -83,12 +83,12 @@
this.stopListeningToStores(); this.stopListeningToStores();
}, },
authChangeListener: function() { authStoreChanged: function(authStore) {
this.isValidating = this.authStore.isValidating(); this.isValidating = authStore.isValidating();
this.isLoggedIn = this.authStore.isLoggedIn(); this.isLoggedIn = authStore.isLoggedIn();
this.spinnerMessage = this.isValidating ? this.MSG_VALIDATING : this.MSG_LOADING_DATA; 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.error = this.authStore.getLastAttemptMessage();
this.$.passwordDecorator.isInvalid = true; this.$.passwordDecorator.isInvalid = true;
} }