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
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-12-04 18:18:23 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-12-04 18:43:59 +0300
commit387f16267ca2dae75f46d0871a34a50792d16089 (patch)
treeac6c583c1899ea9679c572ce9952de711a214c93 /app/assets
parentc61ac4329bfc863162882f12c1dda0f0294ed0c2 (diff)
Prevent job link form rendering when user does not have permissions
Adds e2e tests
Diffstat (limited to 'app/assets')
-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"