mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Squash some frontend bugs
This commit is contained in:
parent
7dd7c489e8
commit
791ebff7ee
@ -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>
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user