From e427d8b714bee67f50ad0ce6b59abb763cc8d064 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 21 Oct 2020 20:35:26 +0200 Subject: [PATCH] donst export checked items --- cookbook/templates/shopping_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/templates/shopping_list.html b/cookbook/templates/shopping_list.html index 5118bc1ab0..c84d1b9f6f 100644 --- a/cookbook/templates/shopping_list.html +++ b/cookbook/templates/shopping_list.html @@ -372,7 +372,7 @@

{% trans 'Shopping List' %}

}, export_text() { let text = '' - for (let e of this.display_entries) { + for (let e of this.display_entries.filter(item => item.checked === false)) { text += `${this.export_text_prefix}${e.amount} ${e.unit.name} ${e.food.name} \n` } return text