Skip to content

Commit d91318a

Browse files
committed
fix: lint
1 parent 5c5ea11 commit d91318a

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ module.exports = defineConfig([
4343
TextDecoder: true,
4444
AbortController: true,
4545
clearTimeout: true,
46-
requestAnimationFrame: true
46+
requestAnimationFrame: true,
47+
localStorage: true
4748
},
4849
sourceType: 'commonjs'
4950
},

frontend/src/task-single/task-single.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = app => app.component('task-single', {
2525
const path = `/tasks/${encodeURIComponent(name || '')}`;
2626
const query = this.$route.query?.status ? { status: this.$route.query.status } : {};
2727
return { path, query };
28-
},
28+
}
2929
},
3030
watch: {
3131
'$route.params': {
@@ -82,11 +82,11 @@ module.exports = app => app.component('task-single', {
8282
async confirmRescheduleTask() {
8383
if (!this.newScheduledTime) return;
8484
await api.Task.rescheduleTask({ taskId: this.selectedTask.id, scheduledAt: this.newScheduledTime });
85-
this.$toast.success({ title: 'Task Rescheduled', text: `Task ${this.selectedTask.id} has been rescheduled`, });
86-
this.showRescheduleModal = false;
87-
this.selectedTask = null;
88-
this.newScheduledTime = '';
89-
await this.loadTask();
85+
this.$toast.success({ title: 'Task Rescheduled', text: `Task ${this.selectedTask.id} has been rescheduled` });
86+
this.showRescheduleModal = false;
87+
this.selectedTask = null;
88+
this.newScheduledTime = '';
89+
await this.loadTask();
9090
},
9191
async confirmRunTask() {
9292
await api.Task.runTask({ taskId: this.selectedTask.id });
@@ -104,10 +104,10 @@ module.exports = app => app.component('task-single', {
104104
},
105105
async confirmCancelTask() {
106106
await api.Task.cancelTask({ taskId: this.selectedTask.id });
107-
this.$toast.success({ title: 'Task Cancelled', text: `Task ${this.selectedTask.id} has been cancelled` });
108-
this.showCancelModal = false;
109-
this.selectedTask = null;
110-
this.goBack();
107+
this.$toast.success({ title: 'Task Cancelled', text: `Task ${this.selectedTask.id} has been cancelled` });
108+
this.showCancelModal = false;
109+
this.selectedTask = null;
110+
this.goBack();
111111
}
112112
},
113113
mounted() {

frontend/src/tasks/task-details/task-details.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = app => app.component('task-details', {
8080
requestAnimationFrame(() => this.ensureStatusChart());
8181
});
8282
}
83-
},
83+
}
8484
},
8585
methods: {
8686
destroyStatusChart() {

0 commit comments

Comments
 (0)