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
711264d8
Commit
711264d8
authored
Sep 03, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in weight.vue
parent
e2e3b618
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ee/app/assets/javascripts/sidebar/components/weight/weight.vue
...p/assets/javascripts/sidebar/components/weight/weight.vue
+7
-3
No files found.
ee/app/assets/javascripts/sidebar/components/weight/weight.vue
View file @
711264d8
<
script
>
/* eslint-disable vue/no-v-html */
import
$
from
'
jquery
'
;
import
{
GlLoadingIcon
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlLoadingIcon
,
GlIcon
,
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
{
__
,
s__
}
from
'
~/locale
'
;
import
Tracking
from
'
~/tracking
'
;
import
eventHub
from
'
~/sidebar/event_hub
'
;
...
...
@@ -14,6 +13,7 @@ export default {
},
directives
:
{
tooltip
,
SafeHtml
,
},
mixins
:
[
Tracking
.
mixin
({
label
:
'
right_sidebar
'
})],
props
:
{
...
...
@@ -166,7 +166,11 @@ export default {
>
<gl-icon
:size=
"16"
name=
"weight"
/>
<gl-loading-icon
v-if=
"fetching"
class=
"js-weight-collapsed-loading-icon"
/>
<span
v-else
class=
"js-weight-collapsed-weight-label"
v-html=
"collapsedWeightLabel"
></span>
<span
v-else
v-safe-html=
"collapsedWeightLabel"
class=
"js-weight-collapsed-weight-label"
></span>
</div>
<div
class=
"title hide-collapsed"
>
{{
s__
(
'
Sidebar|Weight
'
)
}}
...
...
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