From fb2d53ba7ae08ad3bf80277fb1cae3e6a944540b Mon Sep 17 00:00:00 2001 From: logikonline Date: Sat, 7 Feb 2026 14:22:29 -0500 Subject: [PATCH] refactor(ui): replace link-action with async methods for job reruns Replace link-action class with proper async methods (rerunJob and rerunAll) for handling job and workflow reruns in RepoActionView. This provides better control over the rerun flow and ensures proper page reload after the POST request completes. --- web_src/js/components/RepoActionView.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue index 65b9e4de45..cea669cf2d 100644 --- a/web_src/js/components/RepoActionView.vue +++ b/web_src/js/components/RepoActionView.vue @@ -292,6 +292,16 @@ export default defineComponent({ approveRun() { POST(`${this.run.link}/approve`); }, + // rerun a specific job + async rerunJob(jobIndex: number) { + await POST(`${this.run.link}/jobs/${jobIndex}/rerun`); + window.location.reload(); + }, + // rerun all jobs + async rerunAll() { + await POST(`${this.run.link}/rerun`); + window.location.reload(); + }, createLogLine(stepIndex: number, startTime: number, line: LogLine) { const lineNum = createElementFromAttrs('a', {class: 'line-num muted', href: `#jobstep-${stepIndex}-${line.index}`}, @@ -497,7 +507,7 @@ export default defineComponent({ - @@ -531,7 +541,7 @@ export default defineComponent({ {{ job.name }} - + {{ job.duration }} @@ -580,7 +590,7 @@ export default defineComponent({