mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Rename the edit state button in more info to debug
This commit is contained in:
parent
7f7c403e00
commit
fd6ff4c8d3
@ -26,7 +26,7 @@
|
|||||||
Polymer({
|
Polymer({
|
||||||
|
|
||||||
cardClicked: function() {
|
cardClicked: function() {
|
||||||
this.api.showStateCardDialog(this.stateObj.entity_id);
|
this.api.showmoreInfoDialog(this.stateObj.entity_id);
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<link rel="import" href="../cards/state-card-content.html">
|
<link rel="import" href="../cards/state-card-content.html">
|
||||||
<link rel="import" href="../more-infos/more-info-content.html">
|
<link rel="import" href="../more-infos/more-info-content.html">
|
||||||
|
|
||||||
<polymer-element name="state-card-dialog" attributes="api">
|
<polymer-element name="more-info-dialog" attributes="api">
|
||||||
<template>
|
<template>
|
||||||
<ha-action-dialog id="dialog">
|
<ha-action-dialog id="dialog">
|
||||||
|
|
||||||
@ -20,8 +20,8 @@
|
|||||||
<more-info-content stateObj="{{stateObj}}" api="{{api}}"></more-info-content>
|
<more-info-content stateObj="{{stateObj}}" api="{{api}}"></more-info-content>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<paper-button dismissive>Dismiss</paper-button>
|
<paper-button dismissive on-click={{editClicked}}>Debug</paper-button>
|
||||||
<paper-button affirmative on-click={{editClicked}}>Edit State</paper-button>
|
<paper-button affirmative>Dismiss</paper-button>
|
||||||
</ha-action-dialog>
|
</ha-action-dialog>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
@ -29,12 +29,6 @@
|
|||||||
Polymer({
|
Polymer({
|
||||||
stateObj: {},
|
stateObj: {},
|
||||||
|
|
||||||
// domReady: function() {
|
|
||||||
// this.$.dialog.addEventListener('core-overlay-open-completed', function() {
|
|
||||||
// this.$.dialog.resizeHandler();
|
|
||||||
// }.bind(this));
|
|
||||||
// },
|
|
||||||
|
|
||||||
show: function(stateObj) {
|
show: function(stateObj) {
|
||||||
this.stateObj = stateObj;
|
this.stateObj = stateObj;
|
||||||
this.$.dialog.toggle();
|
this.$.dialog.toggle();
|
@ -13,6 +13,10 @@
|
|||||||
|
|
||||||
<core-style ref='ha-dialog'></core-style>
|
<core-style ref='ha-dialog'></core-style>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This dialog will update the representation of the device within Home Assistant. This will not communicate with the actual device.
|
||||||
|
</p>
|
||||||
|
|
||||||
<div layout horizontal>
|
<div layout horizontal>
|
||||||
<div class='ha-form'>
|
<div class='ha-form'>
|
||||||
<paper-input id="inputEntityID" label="Entity ID" floatingLabel="true" autofocus required></paper-input>
|
<paper-input id="inputEntityID" label="Entity ID" floatingLabel="true" autofocus required></paper-input>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<link rel="import" href="dialogs/event-fire-dialog.html">
|
<link rel="import" href="dialogs/event-fire-dialog.html">
|
||||||
<link rel="import" href="dialogs/service-call-dialog.html">
|
<link rel="import" href="dialogs/service-call-dialog.html">
|
||||||
<link rel="import" href="dialogs/state-set-dialog.html">
|
<link rel="import" href="dialogs/state-set-dialog.html">
|
||||||
<link rel="import" href="dialogs/state-card-dialog.html">
|
<link rel="import" href="dialogs/more-info-dialog.html">
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var ha = {};
|
var ha = {};
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<event-fire-dialog id="eventDialog" api={{api}}></event-fire-dialog>
|
<event-fire-dialog id="eventDialog" api={{api}}></event-fire-dialog>
|
||||||
<service-call-dialog id="serviceDialog" api={{api}}></service-call-dialog>
|
<service-call-dialog id="serviceDialog" api={{api}}></service-call-dialog>
|
||||||
<state-set-dialog id="stateSetDialog" api={{api}}></state-set-dialog>
|
<state-set-dialog id="stateSetDialog" api={{api}}></state-set-dialog>
|
||||||
<state-card-dialog id="stateCardDialog" api={{api}}></state-card-dialog>
|
<more-info-dialog id="moreInfoDialog" api={{api}}></more-info-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
var domainsWithCard = ['thermostat'];
|
var domainsWithCard = ['thermostat'];
|
||||||
@ -395,8 +395,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
// show dialogs
|
// show dialogs
|
||||||
showStateCardDialog: function(entityId) {
|
showmoreInfoDialog: function(entityId) {
|
||||||
this.$.stateCardDialog.show(this.getState(entityId));
|
this.$.moreInfoDialog.show(this.getState(entityId));
|
||||||
},
|
},
|
||||||
|
|
||||||
showEditStateDialog: function(entityId) {
|
showEditStateDialog: function(entityId) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user