@@ -187,8 +200,10 @@
@@ -282,7 +297,7 @@
data: {
shopping_list_id: {% if shopping_list_id %}{{ shopping_list_id }}{% else %}null{% endif %},
loading: true,
- edit_mode: false,
+ edit_mode: true,
export_text_prefix: '', //TODO add userpreference
recipe_query: '',
recipes: [],
@@ -296,6 +311,12 @@
foods_loading: false,
units: [],
units_loading: false,
+ list: [
+ {id: 1, name: "Abby", sport: "basket"},
+ {id: 2, name: "Brooke", sport: "foot"},
+ {id: 3, name: "Courtenay", sport: "volley"},
+ {id: 4, name: "David", sport: "rugby"}
+ ],
},
directives: {
tabindex: {
@@ -491,6 +512,12 @@
})
},
+ sortEntries: function () {
+ this.display_entries.forEach( (item, index) => {
+
+ })
+ console.log("IMPLEMENT ME", this.display_entries)
+ },
entryChecked: function (entry) {
console.log("checked entry: ", entry)
this.shopping_list.entries.forEach((item) => {