Commit e63cbf4e authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Tim Zallmann

Stuck block URL links to runners settings

parent 3ff2e1bb
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
StuckBlock, StuckBlock,
}, },
props: { props: {
runnerHelpUrl: { runnerSettingsUrl: {
type: String, type: String,
required: false, required: false,
default: null, default: null,
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
class="js-job-stuck" class="js-job-stuck"
:has-no-runners-for-project="job.runners.available" :has-no-runners-for-project="job.runners.available"
:tags="job.tags" :tags="job.tags"
:runners-path="runnerHelpUrl" :runners-path="runnerSettingsUrl"
/> />
<environments-block <environments-block
......
...@@ -33,7 +33,7 @@ export default () => { ...@@ -33,7 +33,7 @@ export default () => {
props: { props: {
isLoading: this.isLoading, isLoading: this.isLoading,
job: this.job, job: this.job,
runnerHelpUrl: dataset.runnerHelpUrl, runnerSettingsUrl: dataset.runnerSettingsUrl,
}, },
}); });
}, },
......
...@@ -47,4 +47,6 @@ ...@@ -47,4 +47,6 @@
.js-build-options{ data: javascript_build_options } .js-build-options{ data: javascript_build_options }
#js-job-details-vue{ data: { endpoint: project_job_path(@project, @build, format: :json), runner_help_url: help_page_path('ci/runners/README.html', anchor: 'setting-maximum-job-timeout-for-a-runner') } } #js-job-details-vue{ data: { endpoint: project_job_path(@project, @build, format: :json),
runner_help_url: help_page_path('ci/runners/README.html', anchor: 'setting-maximum-job-timeout-for-a-runner'),
runner_settings_url: project_runners_path(@build.project, anchor: 'js-runners-settings') } }
---
title: Fixes stuck block URL linking to documentation instead of settings page
merge_request: 22286
author:
type: fixed
...@@ -41,7 +41,7 @@ describe('Job App ', () => { ...@@ -41,7 +41,7 @@ describe('Job App ', () => {
}; };
const props = { const props = {
runnerHelpUrl: 'help/runners', runnerSettingsUrl: 'settings/ci-cd/runners',
}; };
beforeEach(() => { beforeEach(() => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment