diff options
author | Phil Hughes <me@iamphill.com> | 2018-03-21 16:49:57 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-03-21 16:49:57 +0000 |
commit | 7d651ad1de8a6b150164a5f94938e2f79f875f93 (patch) | |
tree | 9fc163abcf90b95f5dfcf4bcdcf69ef95ec504e7 /app/assets/javascripts/performance_bar/components/detailed_metric.vue | |
parent | ab53f7aa136762e90c2addca7d930b134a42567c (diff) | |
download | gitlab-ce-7d651ad1de8a6b150164a5f94938e2f79f875f93.tar.gz |
removed check for host
changed wrapper to container with correct widths
Diffstat (limited to 'app/assets/javascripts/performance_bar/components/detailed_metric.vue')
-rw-r--r-- | app/assets/javascripts/performance_bar/components/detailed_metric.vue | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/app/assets/javascripts/performance_bar/components/detailed_metric.vue b/app/assets/javascripts/performance_bar/components/detailed_metric.vue index 719282e69c1..d4881f07972 100644 --- a/app/assets/javascripts/performance_bar/components/detailed_metric.vue +++ b/app/assets/javascripts/performance_bar/components/detailed_metric.vue @@ -28,8 +28,11 @@ export default { }, }, computed: { + metricDetails() { + return this.currentRequest.details[this.metric]; + }, detailsList() { - return this.currentRequest.details[this.metric][this.details]; + return this.metricDetails[this.details]; }, }, }; @@ -38,6 +41,7 @@ export default { <div :id="`peek-view-${metric}`" class="view" + v-if="currentRequest.details" > <button :data-target="`#modal-peek-${metric}-details`" @@ -45,17 +49,11 @@ export default { type="button" data-toggle="modal" > - <span - v-if="currentRequest.details" - class="bold" - > - {{ currentRequest.details[metric].duration }} - / - {{ currentRequest.details[metric].calls }} - </span> + {{ metricDetails.duration }} + / + {{ metricDetails.calls }} </button> <gl-modal - v-if="currentRequest.details" :id="`modal-peek-${metric}-details`" :header-title-text="header" class="performance-bar-modal" |