From 7451433aa46bd16ee9770265c511aba23aecd5d5 Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Fri, 2 Oct 2020 01:33:33 +0200 Subject: [PATCH] Remove debugging statements --- lib/www/client/source/src/views/LineList.vue | 1 - lib/www/client/source/src/views/Log.vue | 22 ++------------------ 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/lib/www/client/source/src/views/LineList.vue b/lib/www/client/source/src/views/LineList.vue index d17a638..dc9dfee 100644 --- a/lib/www/client/source/src/views/LineList.vue +++ b/lib/www/client/source/src/views/LineList.vue @@ -157,7 +157,6 @@ export default { if (oldVal.value === null) oldVal.value = ""; if (item && item[oldVal.key] != oldVal.value) { - console.log("original, new", item[oldVal.key], oldVal.value); if (await this.saveItem(oldVal)) { item[oldVal.key] = oldVal.value; } else { diff --git a/lib/www/client/source/src/views/Log.vue b/lib/www/client/source/src/views/Log.vue index 185194b..261f287 100644 --- a/lib/www/client/source/src/views/Log.vue +++ b/lib/www/client/source/src/views/Log.vue @@ -457,7 +457,6 @@ export default { }, async saveEvent (event) { - console.log("Saving", event); const url = `/project/${this.$route.params.project}/event`; await this.api([url, { method: "POST", @@ -466,15 +465,9 @@ export default { this.showSnack(["New event saved", "success"]); this.queuedReload = true; this.getEvents({cache: "reload"}); - console.log("Done"); - }, - - saveLabels (event) { - console.log("saveLabels", event); }, rowEditorOpen (row) { - console.log(row); this.editedRow = JSON.parse(JSON.stringify(row)); for (const item of this.editedRow.items) { if (item.type != "timed" && item.type != "sequence") { @@ -507,8 +500,6 @@ export default { return; } - console.log("rowEditorSave", this.editedRow, originalRow); - const promises = []; for (const editedItem of this.editedRow.items) { @@ -525,7 +516,6 @@ export default { if (originalItem.remarks != editedItem.remarks || !ArraysEqual(originalItem.labels, editedItem.labels)) { // This item has been modified - console.log("PUT modified item", editedItem, originalItem); const url = `/project/${this.$route.params.project}/event/${editedItem.type}/${editedItem.id}/`; const request = this.api([url, { method: "PUT", @@ -540,12 +530,9 @@ export default { if (!editedItem.remarks.trim() && !editedItem.labels.length) { // There is nothing to post, discard - console.log("Discard empty event", editedItem); continue; } - console.log("POST new item", editedItem); - const url = `/project/${this.$route.params.project}/event/`; const request = this.api([url, { method: "POST", @@ -566,8 +553,6 @@ export default { if (!editedItem) { // If not found, it has been deleted - console.log("DELETE old item", originalItem); - const url = `/project/${this.$route.params.project}/event/${originalItem.type}/${originalItem.id}/`; const request = this.api([url, {method: "DELETE"}]); @@ -606,7 +591,6 @@ export default { removeEvent (event, row) { const index = row.items.indexOf(event); if (index >= 0) { - console.log(JSON.parse(JSON.stringify(event))); if (!event.virtual) { // A virtual event will not be deletable so we can't // remove it @@ -632,7 +616,6 @@ export default { }, addLabel (editedItem) { - console.log("addLabel", this.selectedLabels, editedItem); this.selectedLabels.forEach(label => { if (!editedItem.labels.includes(label)) { @@ -644,7 +627,6 @@ export default { }, removeLabel (label, item) { - console.log("removeLabel", label, item); item.labels = item.labels.filter(l => l != label); @@ -658,10 +640,10 @@ export default { handleKeyboardEvent (e) { if (e.ctrlKey && !e.altKey && !e.shiftKey && (e.keyCode == 13 || e.key == "F2")) { - console.log("Add timed event if offline or shot event if online"); + // Add timed event if offline or shot event if online this.eventDialog = true; } else if (e.ctrlKey && !e.altKey && e.shiftKey && (e.keyCode == 13 || e.key == "F2")) { - console.log("Add timed event (even if online)"); + // Add timed event (even if online) this.eventDialog = true; }