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
aadb1cdc
Commit
aadb1cdc
authored
Feb 19, 2020
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes underscore from issues_show
parent
e7ab2afd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
app/assets/javascripts/issue_show/stores/index.js
app/assets/javascripts/issue_show/stores/index.js
+1
-2
app/assets/javascripts/issue_show/utils/update_description.js
...assets/javascripts/issue_show/utils/update_description.js
+1
-3
No files found.
app/assets/javascripts/issue_show/stores/index.js
View file @
aadb1cdc
import
_
from
'
underscore
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
updateDescription
from
'
../utils/update_description
'
;
...
...
@@ -26,7 +25,7 @@ export default class Store {
'
.detail-page-description.content-block
'
,
);
const
details
=
!
_
.
isNull
(
descriptionSection
)
&&
descriptionSection
.
getElementsByTagName
(
'
details
'
);
descriptionSection
!=
null
&&
descriptionSection
.
getElementsByTagName
(
'
details
'
);
this
.
state
.
descriptionHtml
=
updateDescription
(
data
.
description
,
details
);
this
.
state
.
titleHtml
=
data
.
title
;
...
...
app/assets/javascripts/issue_show/utils/update_description.js
View file @
aadb1cdc
import
_
from
'
underscore
'
;
/**
* Function that replaces the open attribute for the <details> element.
*
...
...
@@ -10,7 +8,7 @@ import _ from 'underscore';
const
updateDescription
=
(
descriptionHtml
=
''
,
details
)
=>
{
let
detailNodes
=
details
;
if
(
_
.
isEmpty
(
details
)
)
{
if
(
!
details
.
length
)
{
detailNodes
=
[];
}
...
...
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