diff options
Diffstat (limited to 'app/assets/javascripts/performance_bar/stores/performance_bar_store.js')
-rw-r--r-- | app/assets/javascripts/performance_bar/stores/performance_bar_store.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/assets/javascripts/performance_bar/stores/performance_bar_store.js b/app/assets/javascripts/performance_bar/stores/performance_bar_store.js index 5a69960e4d9..2011604534c 100644 --- a/app/assets/javascripts/performance_bar/stores/performance_bar_store.js +++ b/app/assets/javascripts/performance_bar/stores/performance_bar_store.js @@ -3,15 +3,19 @@ export default class PerformanceBarStore { this.requests = []; } - addRequest(requestId, requestUrl) { + addRequest(requestId, requestUrl, operationName) { if (!this.findRequest(requestId)) { - const shortUrl = PerformanceBarStore.truncateUrl(requestUrl); + let displayName = PerformanceBarStore.truncateUrl(requestUrl); + + if (operationName) { + displayName += ` (${operationName})`; + } this.requests.push({ id: requestId, url: requestUrl, - truncatedUrl: shortUrl, details: {}, + displayName, }); } |