Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions client/src/components/Lists.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down