From ebf9328b446c9df720c113950b54e5e715a446e7 Mon Sep 17 00:00:00 2001 From: LeviSmithCodes Date: Fri, 31 Jan 2020 18:08:59 -0700 Subject: [PATCH] commented depreciated function --- client/src/components/Lists.vue | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/client/src/components/Lists.vue b/client/src/components/Lists.vue index 21beaa7..cdbf556 100644 --- a/client/src/components/Lists.vue +++ b/client/src/components/Lists.vue @@ -111,19 +111,19 @@ export default { } }, // NOTE Depreciated - createListItem(listId) { - let listItem = { ...this.newItem }; - let tripId = this.$route.params.tripId; - listItem.profileId = this.$store.state.profile._id; - // console.log("listItem is:", listItem); - // NOTE the below has to have the same name as the action in the store - this.$store.dispatch("addListItem", { listId, listItem, tripId }); - this.newItem = { - itemName: "", - tripId: this.$route.params.tripId, - profileId: "" - }; - }, + // createListItem(listId) { + // let listItem = { ...this.newItem }; + // let tripId = this.$route.params.tripId; + // listItem.profileId = this.$store.state.profile._id; + // // console.log("listItem is:", listItem); + // // NOTE the below has to have the same name as the action in the store + // this.$store.dispatch("addListItem", { listId, listItem, tripId }); + // this.newItem = { + // itemName: "", + // tripId: this.$route.params.tripId, + // profileId: "" + // }; + // }, removeListItem(listId, listItemId) { if (confirm("Are You Sure You Want To Delete This Item?")) { let tripId = this.$route.params.tripId;