mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 12:56:37 +00:00
Fix mark items as (un)complete in shopping list (#887)
* Fix mark items as (un)complete in shopping list Fix: #885 * Update ha-panel-shopping-list.html
This commit is contained in:
parent
e2ff04e40b
commit
10c07673c1
@ -175,9 +175,8 @@ class HaPanelShoppingList extends window.hassMixins.LocalizeMixin(Polymer.Elemen
|
|||||||
|
|
||||||
_itemCompleteTapped(ev) {
|
_itemCompleteTapped(ev) {
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
var item = ev.model.item;
|
this.hass.callApi('post', 'shopping_list/item/' + ev.model.item.id, {
|
||||||
this.hass.callApi('post', 'shopping_list/item/' + item.id, {
|
complete: ev.target.checked
|
||||||
complete: !item.complete
|
|
||||||
}).catch(() => this._fetchData());
|
}).catch(() => this._fetchData());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user