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
b48a1828
Commit
b48a1828
authored
Oct 05, 2021
by
Rishabh Gupta
Committed by
Kushal Pandya
Oct 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: replacing v-html with v-safe-html
parent
e372ad1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
app/assets/javascripts/vue_shared/components/issue/related_issuable_item.vue
...pts/vue_shared/components/issue/related_issuable_item.vue
+10
-3
ee/app/assets/javascripts/ci_minutes_usage/components/minutes_usage_project_chart.vue
..._minutes_usage/components/minutes_usage_project_chart.vue
+1
-2
No files found.
app/assets/javascripts/vue_shared/components/issue/related_issuable_item.vue
View file @
b48a1828
<
script
>
import
'
~/commons/bootstrap
'
;
import
{
GlIcon
,
GlTooltip
,
GlTooltipDirective
,
GlButton
}
from
'
@gitlab/ui
'
;
import
{
GlIcon
,
GlTooltip
,
GlTooltipDirective
,
GlButton
,
GlSafeHtmlDirective
as
SafeHtml
,
}
from
'
@gitlab/ui
'
;
import
IssueDueDate
from
'
~/boards/components/issue_due_date.vue
'
;
import
{
sprintf
}
from
'
~/locale
'
;
import
relatedIssuableMixin
from
'
../../mixins/related_issuable_mixin
'
;
...
...
@@ -22,6 +28,7 @@ export default {
},
directives
:
{
GlTooltip
:
GlTooltipDirective
,
SafeHtml
,
},
mixins
:
[
relatedIssuableMixin
],
props
:
{
...
...
@@ -84,7 +91,7 @@ export default {
/>
</div>
<gl-tooltip
:target=
"() => $refs.iconElementXL"
>
<span
v-
html=
"stateTitle /* eslint-disable-line vue/no-v-html */
"
></span>
<span
v-
safe-html=
"stateTitle
"
></span>
</gl-tooltip>
<gl-icon
v-if=
"confidential"
...
...
@@ -110,7 +117,7 @@ export default {
class=
"item-path-area item-path-id d-flex align-items-center mr-2 mt-2 mt-xl-0 ml-xl-2"
>
<gl-tooltip
:target=
"() => this.$refs.iconElement"
>
<span
v-
html=
"stateTitle /* eslint-disable-line vue/no-v-html */
"
></span>
<span
v-
safe-html=
"stateTitle
"
></span>
</gl-tooltip>
<span
v-gl-tooltip
:title=
"itemPath"
class=
"path-id-text d-inline-block"
>
{{
itemPath
...
...
ee/app/assets/javascripts/ci_minutes_usage/components/minutes_usage_project_chart.vue
View file @
b48a1828
...
...
@@ -87,8 +87,7 @@ export default {
data-testid=
"month-dropdown-item"
@
click=
"changeSelectedMonth(monthName)"
>
<!-- eslint-disable-next-line @gitlab/vue-require-string-literal-i18n-helpers -->
{{
__
(
monthName
)
}}
{{
monthName
}}
</gl-dropdown-item>
</gl-dropdown>
</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