Skip to content

Commit

Permalink
Fixed linit
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Feb 13, 2019
1 parent 57a9266 commit f423c81
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
4 changes: 2 additions & 2 deletions client/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default {
socketConnection() {
if (this.socketConnection) return;
setTimeout(() => {
setTimeout(() => {
if (this.socketConnection) return;
let options = {
positionClass: "toast-bottom-left"
Expand All @@ -68,7 +68,7 @@ export default {
"Connection Lost",
options
);
}, 1000)
}, 1000);
},
loginRequired: {
handler(newValue) {
Expand Down
7 changes: 3 additions & 4 deletions client/src/components/tasks/Task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion client/src/views/AdminPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 " +
Expand Down
13 changes: 9 additions & 4 deletions client/src/views/Dataset.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 0 additions & 2 deletions client/src/views/Tasks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit f423c81

Please sign in to comment.