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
77d52416
Commit
77d52416
authored
Sep 04, 2020
by
Kev
Committed by
Kushal Pandya
Sep 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in registry_breadcrumb.vue
parent
bba75738
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
app/assets/javascripts/registry/explorer/components/registry_breadcrumb.vue
...ipts/registry/explorer/components/registry_breadcrumb.vue
+4
-3
changelogs/unreleased/241964-Replace-v-html.yml
changelogs/unreleased/241964-Replace-v-html.yml
+5
-0
No files found.
app/assets/javascripts/registry/explorer/components/registry_breadcrumb.vue
View file @
77d52416
<
script
>
/* eslint-disable vue/no-v-html */
import
{
initial
,
first
,
last
}
from
'
lodash
'
;
import
{
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
export
default
{
directives
:
{
SafeHtml
},
props
:
{
crumbs
:
{
type
:
Array
,
...
...
@@ -42,14 +43,14 @@ export default {
<li
v-for=
"(crumb, index) in rootCrumbs"
:key=
"index"
v-safe-html=
"crumb.innerHTML"
:class=
"crumb.className"
v-html=
"crumb.innerHTML"
></li>
<li
v-if=
"!isRootRoute"
>
<router-link
ref=
"rootRouteLink"
:to=
"rootRoute.path"
>
{{
rootRoute
.
meta
.
nameGenerator
(
rootRoute
)
}}
</router-link>
<component
:is=
"divider.tagName"
:class=
"divider.classList"
v-html=
"divider.innerHTML
"
/>
<component
:is=
"divider.tagName"
v-safe-html=
"divider.innerHTML"
:class=
"divider.classList
"
/>
</li>
<li>
<component
:is=
"lastCrumb.tagName"
ref=
"lastCrumb"
:class=
"lastCrumb.className"
>
...
...
changelogs/unreleased/241964-Replace-v-html.yml
0 → 100644
View file @
77d52416
---
title
:
Replace v-html with v-safe-html in registry_breadcrumb.vue
merge_request
:
41207
author
:
Kev @KevSlashNull
type
:
other
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