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
Boxiang Sun
gitlab-ce
Commits
541c8da0
Commit
541c8da0
authored
May 05, 2017
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make toggle switch for flags
parent
62f7b206
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
app/assets/javascripts/issue_show/issue_title_description.vue
...assets/javascripts/issue_show/issue_title_description.vue
+8
-8
No files found.
app/assets/javascripts/issue_show/issue_title_description.vue
View file @
541c8da0
...
...
@@ -51,6 +51,10 @@ export default {
};
},
methods
:
{
updateFlag
(
key
,
toggle
)
{
this
[
key
].
pre
=
toggle
;
this
[
key
].
pulse
=
!
toggle
;
},
renderResponse
(
res
)
{
this
.
apiData
=
res
.
json
();
this
.
triggerAnimation
();
...
...
@@ -61,8 +65,7 @@ export default {
elementsToVisualize
(
noTitleChange
,
noDescriptionChange
)
{
if
(
!
noTitleChange
)
{
this
.
titleText
=
this
.
apiData
.
title_text
;
this
.
titleFlag
.
pre
=
true
;
this
.
titleFlag
.
pulse
=
false
;
this
.
updateFlag
(
'
titleFlag
'
,
true
);
}
if
(
!
noDescriptionChange
)
{
...
...
@@ -70,8 +73,7 @@ export default {
this
.
descriptionChange
=
true
;
this
.
updateTaskHTML
();
this
.
tasks
=
this
.
apiData
.
task_status
;
this
.
descriptionFlag
.
pre
=
true
;
this
.
descriptionFlag
.
pulse
=
false
;
this
.
updateFlag
(
'
descriptionFlag
'
,
true
);
}
},
setTabTitle
()
{
...
...
@@ -85,10 +87,8 @@ export default {
this
.
setTabTitle
();
this
.
$nextTick
(()
=>
{
this
.
titleFlag
.
pre
=
false
;
this
.
titleFlag
.
pulse
=
true
;
this
.
descriptionFlag
.
pre
=
false
;
this
.
descriptionFlag
.
pulse
=
true
;
this
.
updateFlag
(
'
titleFlag
'
,
false
);
this
.
updateFlag
(
'
descriptionFlag
'
,
false
);
});
},
triggerAnimation
()
{
...
...
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