Stuck block URL links to runners settings

This commit is contained in:
Filipa Lacerda 2018-10-11 15:14:40 +00:00 committed by Tim Zallmann
parent 3ff2e1bb9d
commit e63cbf4ece
5 changed files with 12 additions and 5 deletions

View file

@ -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 @@
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

View file

@ -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,
}, },
}); });
}, },

View file

@ -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') } }

View file

@ -0,0 +1,5 @@
---
title: Fixes stuck block URL linking to documentation instead of settings page
merge_request: 22286
author:
type: fixed

View file

@ -41,7 +41,7 @@ describe('Job App ', () => {
}; };
const props = { const props = {
runnerHelpUrl: 'help/runners', runnerSettingsUrl: 'settings/ci-cd/runners',
}; };
beforeEach(() => { beforeEach(() => {