Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2017-12-05 11:20:31 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2017-12-05 11:20:31 +0300
commit61392168a0265e6c54cbccc6b7529822b123ff5b (patch)
tree4e3beda0bdd89b5882be359bbcaa0fb61f88121e /app
parentf3a3bd50eafdcfcaeea21d6cfa0b8bbae7720fec (diff)
parent387f16267ca2dae75f46d0871a34a50792d16089 (diff)
Merge branch '40739-access-404' into 'master'
Prevent job link form rendering when user does not have permissions Closes #40739 See merge request gitlab-org/gitlab-ce!15723
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/pipelines/components/graph/job_component.vue9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/assets/javascripts/pipelines/components/graph/job_component.vue b/app/assets/javascripts/pipelines/components/graph/job_component.vue
index 5dea4555515..08199b4234a 100644
--- a/app/assets/javascripts/pipelines/components/graph/job_component.vue
+++ b/app/assets/javascripts/pipelines/components/graph/job_component.vue
@@ -78,11 +78,13 @@
<div class="ci-job-component">
<a
v-tooltip
- v-if="job.status.details_path"
+ v-if="job.status.has_details"
:href="job.status.details_path"
:title="tooltipText"
:class="cssClassJobName"
- data-container="body">
+ data-container="body"
+ class="js-pipeline-graph-job-link"
+ >
<job-name-component
:name="job.name"
@@ -95,7 +97,8 @@
v-tooltip
:title="tooltipText"
:class="cssClassJobName"
- data-container="body">
+ data-container="body"
+ >
<job-name-component
:name="job.name"