diff --git a/app/assets/javascripts/performance_bar/components/performance_bar_app.vue b/app/assets/javascripts/performance_bar/components/performance_bar_app.vue index 20fdd98cf3c5f7c55d2d7c9154299d3c58e0cbfe..710f49b833c894501553fe515d73530980002f23 100644 --- a/app/assets/javascripts/performance_bar/components/performance_bar_app.vue +++ b/app/assets/javascripts/performance_bar/components/performance_bar_app.vue @@ -124,6 +124,9 @@ export default { const fileName = this.requests[0].truncatedUrl; return `${fileName}_perf_bar_${Date.now()}.json`; }, + memoryReportPath() { + return mergeUrlParams({ performance_bar: 'memory' }, window.location.href); + }, }, mounted() { this.currentRequest = this.requestId; @@ -138,9 +141,6 @@ export default { window.location.href, ); }, - memoryReportPath() { - return mergeUrlParams({ performance_bar: 'memory' }, window.location.href); - }, }, safeHtmlConfig: { ADD_TAGS: ['gl-emoji'] }, }; @@ -190,7 +190,7 @@ export default { id="peek-memory-report" class="view" > - <a class="gl-text-blue-200" :href="memoryReportPath()">{{ + <a class="gl-text-blue-200" :href="memoryReportPath">{{ s__('PerformanceBar|Memory report') }}</a> </div>