Skip to content
Snippets Groups Projects
Verified Commit 40d7b83e authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Drop debug prints

parent e293efde
No related branches found
No related tags found
1 merge request!1261Manage holidays
...@@ -103,21 +103,15 @@ export default { ...@@ -103,21 +103,15 @@ export default {
}, },
methods: { methods: {
updateEndDate(newStartDate, item, isCreate) { updateEndDate(newStartDate, item, isCreate) {
console.log("method called", item);
let start = new Date(newStartDate); let start = new Date(newStartDate);
console.log(start);
if (!item.endDate) { if (!item.endDate) {
if (isCreate) { if (isCreate) {
this.$refs.crudList.createModel.dateEnd = newStartDate; this.$refs.crudList.createModel.dateEnd = newStartDate;
console.log("Changed of createmodel");
} else { } else {
this.$refs.crudList.editableItems.find( this.$refs.crudList.editableItems.find(
(holiday) => holiday.id === item.id (holiday) => holiday.id === item.id
)[0].dateEnd = newStartDate; )[0].dateEnd = newStartDate;
console.log("Changed of editableitems");
} }
} else {
console.log(item, newStartDate);
} }
}, },
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment