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
31863be8
Commit
31863be8
authored
Jul 27, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in help_state.vue
parent
2f5a0d41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
app/assets/javascripts/sidebar/components/time_tracking/help_state.vue
...vascripts/sidebar/components/time_tracking/help_state.vue
+6
-4
No files found.
app/assets/javascripts/sidebar/components/time_tracking/help_state.vue
View file @
31863be8
<
script
>
/* eslint-disable vue/no-v-html */
import
{
GlButton
}
from
'
@gitlab/ui
'
;
import
{
GlButton
,
GlSafeHtmlDirective
}
from
'
@gitlab/ui
'
;
import
{
joinPaths
}
from
'
~/lib/utils/url_utility
'
;
import
{
sprintf
,
s__
}
from
'
../../../locale
'
;
...
...
@@ -9,6 +8,9 @@ export default {
components
:
{
GlButton
,
},
directives
:
{
SafeHtml
:
GlSafeHtmlDirective
,
},
computed
:
{
href
()
{
return
joinPaths
(
gon
.
relative_url_root
||
''
,
'
/help/user/project/time_tracking.md
'
);
...
...
@@ -40,8 +42,8 @@ export default {
<div
class=
"time-tracking-info"
>
<h4>
{{
__
(
'
Track time with quick actions
'
)
}}
</h4>
<p>
{{
__
(
'
Quick actions can be used in description and comment boxes.
'
)
}}
</p>
<p
v-html=
"estimateText"
></p>
<p
v-html=
"spendText"
></p>
<p
v-
safe-
html=
"estimateText"
></p>
<p
v-
safe-
html=
"spendText"
></p>
<gl-button
:href=
"href"
>
{{
__
(
'
Learn more
'
)
}}
</gl-button>
</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