BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b36f457d
Commit
b36f457d
authored
Jan 22, 2018
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolves changes in app.vue
parent
69487e5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
57 deletions
+18
-57
app.vue
app/assets/javascripts/issue_show/components/app.vue
+18
-57
No files found.
app/assets/javascripts/issue_show/components/app.vue
View file @
b36f457d
...
...
@@ -25,26 +25,9 @@ export default {
required
:
true
,
type
:
Boolean
,
},
<<<<<<<
HEAD
canDestroy
:
{
required
:
true
,
type
:
Boolean
,
=======
computed
:
{
formState
()
{
return
this
.
store
.
formState
;
},
hasUpdated
()
{
return
!!
this
.
state
.
updatedAt
;
},
issueChanged
()
{
const
descriptionChanged
=
this
.
initialDescriptionText
!==
this
.
store
.
formState
.
description
;
const
titleChanged
=
this
.
initialTitleText
!==
this
.
store
.
formState
.
title
;
return
descriptionChanged
||
titleChanged
;
},
>>>>>>>
28
bd902980f
...
Merge
branch
'fix-description-loss'
into
'master'
},
showInlineEditButton
:
{
type
:
Boolean
,
...
...
@@ -160,6 +143,14 @@ export default {
hasUpdated
()
{
return
!!
this
.
state
.
updatedAt
;
},
issueChanged
()
{
const
descriptionChanged
=
this
.
initialDescriptionText
!==
this
.
store
.
formState
.
description
;
const
titleChanged
=
this
.
initialTitleText
!==
this
.
store
.
formState
.
title
;
return
descriptionChanged
||
titleChanged
;
},
},
components
:
{
descriptionComponent
,
...
...
@@ -172,8 +163,15 @@ export default {
recaptchaModalImplementor
,
],
<<<<<<<
HEAD
methods
:
{
handleBeforeUnloadEvent
(
e
)
{
const
event
=
e
;
if
(
this
.
showForm
&&
this
.
issueChanged
)
{
event
.
returnValue
=
'Are you sure you want to lose your issue information?'
;
}
return
undefined
;
},
openForm
()
{
if
(
!
this
.
showForm
)
{
this
.
showForm
=
true
;
...
...
@@ -188,45 +186,6 @@ export default {
closeForm
()
{
this
.
showForm
=
false
;
},
=======
window
.
addEventListener
(
'beforeunload'
,
this
.
handleBeforeUnloadEvent
);
eventHub
.
$on
(
'delete.issuable'
,
this
.
deleteIssuable
);
eventHub
.
$on
(
'update.issuable'
,
this
.
updateIssuable
);
eventHub
.
$on
(
'close.form'
,
this
.
closeForm
);
eventHub
.
$on
(
'open.form'
,
this
.
openForm
);
},
beforeDestroy
()
{
eventHub
.
$off
(
'delete.issuable'
,
this
.
deleteIssuable
);
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
)
{
const
event
=
e
;
if
(
this
.
showForm
&&
this
.
issueChanged
)
{
event
.
returnValue
=
'Are you sure you want to lose your issue information?'
;
}
return
undefined
;
},
openForm
()
{
if
(
!
this
.
showForm
)
{
this
.
showForm
=
true
;
this
.
store
.
setFormState
({
title
:
this
.
state
.
titleText
,
description
:
this
.
state
.
descriptionText
,
lockedWarningVisible
:
false
,
updateLoading
:
false
,
});
}
},
closeForm
()
{
this
.
showForm
=
false
;
},
>>>>>>>
28
bd902980f
...
Merge
branch
'fix-description-loss'
into
'master'
updateIssuable
()
{
return
this
.
service
.
updateIssuable
(
this
.
store
.
formState
)
...
...
@@ -300,12 +259,14 @@ export default {
}
});
window
.
addEventListener
(
'beforeunload'
,
this
.
handleBeforeUnloadEvent
);
eventHub
.
$on
(
'delete.issuable'
,
this
.
deleteIssuable
);
eventHub
.
$on
(
'update.issuable'
,
this
.
updateIssuable
);
eventHub
.
$on
(
'close.form'
,
this
.
closeForm
);
eventHub
.
$on
(
'open.form'
,
this
.
openForm
);
},
beforeDestroy
()
{
window
.
removeEventListener
(
'beforeunload'
,
this
.
handleBeforeUnloadEvent
);
eventHub
.
$off
(
'delete.issuable'
,
this
.
deleteIssuable
);
eventHub
.
$off
(
'update.issuable'
,
this
.
updateIssuable
);
eventHub
.
$off
(
'close.form'
,
this
.
closeForm
);
...
...
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