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
fce41f3a
Commit
fce41f3a
authored
Oct 20, 2021
by
Dheeraj Joshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove v-html from monitoring empty state
parent
2847f795
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
app/assets/javascripts/monitoring/components/charts/empty_chart.vue
.../javascripts/monitoring/components/charts/empty_chart.vue
+6
-1
No files found.
app/assets/javascripts/monitoring/components/charts/empty_chart.vue
View file @
fce41f3a
<
script
>
import
chartEmptyStateIllustration
from
'
@gitlab/svgs/dist/illustrations/chart-empty-state.svg
'
;
import
{
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
{
chartHeight
}
from
'
../../constants
'
;
export
default
{
directives
:
{
SafeHtml
:
GlSafeHtmlDirective
,
},
data
()
{
return
{
height
:
chartHeight
,
...
...
@@ -18,14 +22,15 @@ export default {
created
()
{
this
.
chartEmptyStateIllustration
=
chartEmptyStateIllustration
;
},
safeHtmlConfig
:
{
ADD_TAGS
:
[
'
use
'
]
},
};
</
script
>
<
template
>
<div
class=
"d-flex flex-column justify-content-center"
>
<div
v-safe-html:
[$
options.safeHtmlConfig]=
"chartEmptyStateIllustration"
class=
"gl-mt-3 svg-w-100 d-flex align-items-center"
:style=
"svgContainerStyle"
v-html=
"chartEmptyStateIllustration /* eslint-disable-line vue/no-v-html */"
></div>
<h5
class=
"text-center gl-mt-3"
>
{{
__
(
'
No data to display
'
)
}}
</h5>
</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