@@ -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 ( ) {
0 commit comments