Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9c5d5dcb
Commit
9c5d5dcb
authored
Feb 10, 2022
by
Roy Zwambag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move memoryReportPath to a computed property and remove brackets
parent
558e451c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/performance_bar/components/performance_bar_app.vue
...cripts/performance_bar/components/performance_bar_app.vue
+4
-4
No files found.
app/assets/javascripts/performance_bar/components/performance_bar_app.vue
View file @
9c5d5dcb
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment