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
77fe779f
Commit
77fe779f
authored
Jan 18, 2018
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Event listener and make code more readable.
parent
89c3c88e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
app/assets/javascripts/issue_show/components/app.vue
app/assets/javascripts/issue_show/components/app.vue
+8
-4
No files found.
app/assets/javascripts/issue_show/components/app.vue
View file @
77fe779f
...
...
@@ -153,10 +153,13 @@
return
!!
this
.
state
.
updatedAt
;
},
issueChanged
()
{
return
this
.
initialDescriptionText
!==
this
.
store
.
formState
.
description
||
this
.
initialTitleText
!==
this
.
store
.
formState
.
title
;
let
descriptionChanged
=
this
.
initialDescriptionText
!==
this
.
store
.
formState
.
description
;
let
titleChanged
=
this
.
initialTitleText
!==
this
.
store
.
formState
.
title
;
return
descriptionChanged
||
titleChanged
;
},
},
created
()
{
...
...
@@ -194,6 +197,7 @@
eventHub
.
$off
(
'
update.issuable
'
,
this
.
updateIssuable
);
eventHub
.
$off
(
'
close.form
'
,
this
.
closeForm
);
eventHub
.
$off
(
'
open.form
'
,
this
.
openForm
);
window
.
removeEventListener
(
'
beforeunload
'
,
this
.
handleBeforeUnloadEvent
);
},
methods
:
{
handleBeforeUnloadEvent
(
e
)
{
...
...
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