We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1e9245 commit aa787b3Copy full SHA for aa787b3
1 file changed
src/js/main.js
@@ -179,7 +179,17 @@
179
180
button = new StyledElements.StyledButton({'class': 'btn-danger', 'iconClass': 'icon-trash', 'title': 'Delete'});
181
button.addEventListener("click", function () {
182
- this.ngsi_connection.deleteAttributes([{'entity': {id: entry.id, type: entry.type}}]);
+ this.ngsi_connection.deleteAttributes(
183
+ [
184
+ {'entity': {id: entry.id, type: entry.type}}
185
+ ],
186
+ {
187
+ onSuccess: this.ngsi_source.refresh.bind(this.ngsi_source),
188
+ onFailure: function (error) {
189
+ MashupPlatform.widget.log(error);
190
+ }
191
192
+ );
193
}.bind(this));
194
content.appendChild(button);
195
0 commit comments