Fixed a bug that prevented the service dialog from sending JSON

This commit is contained in:
Paulus Schoutsen 2014-11-09 14:43:37 -08:00
parent a4bac63161
commit ca336bef57
5 changed files with 5 additions and 9 deletions

View File

@ -1,2 +1,2 @@
""" DO NOT MODIFY. Auto-generated by build_frontend script """
VERSION = "eed02673a7e36fe85f2fa021373d0156"
VERSION = "560228cee9ffd6de4dfdb5816b2f9a23"

View File

@ -19139,7 +19139,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
clickFireEvent: function() {
this.api.fire_event(
this.$.inputType.value,
this.$.inputData.value
JSON.parse(this.$.inputData.value)
)
}
});
@ -19861,7 +19861,7 @@ core-item {
this.api.call_service(
this.$.inputDomain.value,
this.$.inputService.value,
this.$.inputData.value
JSON.parse(this.$.inputData.value)
)
}
});
@ -20281,8 +20281,6 @@ core-item {
},
fire_event: function(eventType, eventData) {
eventData = eventData ? JSON.parse(eventData) : "";
var successToast = function() {
this.showToast("Event "+eventType+" fired.");
}

View File

@ -70,7 +70,7 @@
clickFireEvent: function() {
this.api.fire_event(
this.$.inputType.value,
this.$.inputData.value
JSON.parse(this.$.inputData.value)
)
}
});

View File

@ -270,8 +270,6 @@
},
fire_event: function(eventType, eventData) {
eventData = eventData ? JSON.parse(eventData) : "";
var successToast = function() {
this.showToast("Event "+eventType+" fired.");
}

View File

@ -68,7 +68,7 @@
this.api.call_service(
this.$.inputDomain.value,
this.$.inputService.value,
this.$.inputData.value
JSON.parse(this.$.inputData.value)
)
}
});