diff --git a/client/src/App.vue b/client/src/App.vue index d823d9c3..24402735 100755 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -57,7 +57,7 @@ export default { socketConnection() { if (this.socketConnection) return; - setTimeout(() => { + setTimeout(() => { if (this.socketConnection) return; let options = { positionClass: "toast-bottom-left" @@ -68,7 +68,7 @@ export default { "Connection Lost", options ); - }, 1000) + }, 1000); }, loginRequired: { handler(newValue) { diff --git a/client/src/components/tasks/Task.vue b/client/src/components/tasks/Task.vue index 96906dfb..d605ecca 100644 --- a/client/src/components/tasks/Task.vue +++ b/client/src/components/tasks/Task.vue @@ -129,14 +129,13 @@ export default { if (show) { setTimeout(() => { - this.highlight = true + this.highlight = true; this.$el.scrollIntoView({ behavior: "smooth" }); - setTimeout(() => this.highlight = false, 1000) - }, 200) + setTimeout(() => (this.highlight = false), 1000); + }, 200); } - } } }; diff --git a/client/src/views/AdminPanel.vue b/client/src/views/AdminPanel.vue index 5a8ae444..40df5ea9 100644 --- a/client/src/views/AdminPanel.vue +++ b/client/src/views/AdminPanel.vue @@ -207,7 +207,7 @@ export default { this.axiosReqestError("Create User", error.response.data.message); }); }, - editUser(user) {}, + editUser() {}, deleteUser(user) { let yes = confirm( "Are you sure you want to delete " + diff --git a/client/src/views/Dataset.vue b/client/src/views/Dataset.vue index e136394c..106d1388 100755 --- a/client/src/views/Dataset.vue +++ b/client/src/views/Dataset.vue @@ -351,13 +351,18 @@ export default { let options = { progressBar: true, positionClass: "toast-bottom-left", - onclick: (r) => { - console.log(r) + onclick: () => { let id = response.data.id; - this.$router.push({ path: '/tasks', query: {id: id}}); + this.$router.push({ path: "/tasks", query: { id: id } }); } }; - this.$toastr.success(`Scanning task created with id ${response.data.id} (click to view).`, "Scanning Dataset", options); + this.$toastr.success( + `Scanning task created with id ${ + response.data.id + } (click to view).`, + "Scanning Dataset", + options + ); }) .catch(error => { this.axiosReqestError( diff --git a/client/src/views/Tasks.vue b/client/src/views/Tasks.vue index 24b72d36..f1550528 100644 --- a/client/src/views/Tasks.vue +++ b/client/src/views/Tasks.vue @@ -55,13 +55,11 @@ export default { .finally(() => this.removeProcess(process)); }, showTask(taskId) { - console.log("Showing " + taskId); if (taskId == null) return; let task = this.tasks.find(t => t.id == taskId); if (task == null) return; task.show = true; - console.log(task); } }, watch: {