Commit 9c5d5dcb authored by Roy Zwambag's avatar Roy Zwambag

Move memoryReportPath to a computed property and remove brackets

parent 558e451c
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment