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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
d9bf04f6
Commit
d9bf04f6
authored
Jul 04, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: Flip toggle discussions chevron when discussion toggled.
parent
91f49069
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
app/assets/javascripts/notes/components/issue_note_header.vue
...assets/javascripts/notes/components/issue_note_header.vue
+20
-3
No files found.
app/assets/javascripts/notes/components/issue_note_header.vue
View file @
d9bf04f6
...
...
@@ -38,6 +38,22 @@ export default {
components
:
{
TimeAgoTooltip
,
},
data
()
{
return
{
isExpanded
:
true
,
}
},
computed
:
{
toggleChevronClass
()
{
return
this
.
isExpanded
?
'
fa-chevron-up
'
:
'
fa-chevron-down
'
;
},
},
methods
:
{
handleToggle
()
{
this
.
isExpanded
=
!
this
.
isExpanded
;
this
.
toggleHandler
();
},
},
};
</
script
>
...
...
@@ -71,12 +87,13 @@ export default {
v-if=
"includeToggle"
class=
"discussion-actions"
>
<button
@
click=
"
toggleHandler
"
@
click=
"
handleToggle
"
class=
"note-action-button discussion-toggle-button js-toggle-button"
type=
"button"
>
<i
aria-hidden=
"true"
class=
"fa fa-chevron-up"
></i>
:class=
"toggleChevronClass"
class=
"fa"
aria-hidden=
"true"
></i>
Toggle discussion
</button>
</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