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
Hide 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
>
<
script
>
import
chartEmptyStateIllustration
from
'
@gitlab/svgs/dist/illustrations/chart-empty-state.svg
'
;
import
chartEmptyStateIllustration
from
'
@gitlab/svgs/dist/illustrations/chart-empty-state.svg
'
;
import
{
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
{
chartHeight
}
from
'
../../constants
'
;
import
{
chartHeight
}
from
'
../../constants
'
;
export
default
{
export
default
{
directives
:
{
SafeHtml
:
GlSafeHtmlDirective
,
},
data
()
{
data
()
{
return
{
return
{
height
:
chartHeight
,
height
:
chartHeight
,
...
@@ -18,14 +22,15 @@ export default {
...
@@ -18,14 +22,15 @@ export default {
created
()
{
created
()
{
this
.
chartEmptyStateIllustration
=
chartEmptyStateIllustration
;
this
.
chartEmptyStateIllustration
=
chartEmptyStateIllustration
;
},
},
safeHtmlConfig
:
{
ADD_TAGS
:
[
'
use
'
]
},
};
};
</
script
>
</
script
>
<
template
>
<
template
>
<div
class=
"d-flex flex-column justify-content-center"
>
<div
class=
"d-flex flex-column justify-content-center"
>
<div
<div
v-safe-html:
[$
options.safeHtmlConfig]=
"chartEmptyStateIllustration"
class=
"gl-mt-3 svg-w-100 d-flex align-items-center"
class=
"gl-mt-3 svg-w-100 d-flex align-items-center"
:style=
"svgContainerStyle"
:style=
"svgContainerStyle"
v-html=
"chartEmptyStateIllustration /* eslint-disable-line vue/no-v-html */"
></div>
></div>
<h5
class=
"text-center gl-mt-3"
>
{{
__
(
'
No data to display
'
)
}}
</h5>
<h5
class=
"text-center gl-mt-3"
>
{{
__
(
'
No data to display
'
)
}}
</h5>
</div>
</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