mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 04:46:34 +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) {
|
||||
ev.stopPropagation();
|
||||
var item = ev.model.item;
|
||||
this.hass.callApi('post', 'shopping_list/item/' + item.id, {
|
||||
complete: !item.complete
|
||||
this.hass.callApi('post', 'shopping_list/item/' + ev.model.item.id, {
|
||||
complete: ev.target.checked
|
||||
}).catch(() => this._fetchData());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user