diff --git a/web/ui/src/components/Job.vue b/web/ui/src/components/Job.vue index e175073..1966298 100644 --- a/web/ui/src/components/Job.vue +++ b/web/ui/src/components/Job.vue @@ -62,7 +62,7 @@ {{job.group}} {{job.user && job.user.length > 0 ? job.user : '-'}} - {{job.name}} + {{job.name}} - {{formatLatest(job.latestStatus)}} @@ -166,15 +166,10 @@ export default { }, editJob: function(group, id){ - var query = this.buildQuery(); - if(query == ''){ - this.$router.push('/job/edit/'+group+'/'+id) - }else{ - this.$router.push('/job/edit/'+group+'/'+id + '?'+query) - } + this.$router.push( this.buildEditJobURL(group, id) ); }, - toJob: function(group, id){ + buildEditJobURL: function(group, id){ var query = this.buildQuery(); if(query == ''){ return '/job/edit/'+group+'/'+id;