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
0fc45b6c
Commit
0fc45b6c
authored
Aug 21, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: Reenable button after failed submit attempt.
parent
19f77cab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
issue_note.vue
app/assets/javascripts/notes/components/issue_note.vue
+3
-2
issue_note_body.vue
app/assets/javascripts/notes/components/issue_note_body.vue
+2
-2
issue_note_form.vue
app/assets/javascripts/notes/components/issue_note_form.vue
+4
-1
No files found.
app/assets/javascripts/notes/components/issue_note.vue
View file @
0fc45b6c
...
...
@@ -73,7 +73,7 @@
});
}
},
formUpdateHandler
(
noteText
,
parentElement
)
{
formUpdateHandler
(
noteText
,
parentElement
,
callback
)
{
const
data
=
{
endpoint
:
this
.
note
.
path
,
note
:
{
...
...
@@ -94,7 +94,8 @@
'Something went wrong while editing your comment. Please try again.'
,
'alert'
,
$
(
parentElement
),
));
))
.
then
(
callback
);
},
formCancelHandler
(
shouldConfirm
,
isDirty
)
{
if
(
shouldConfirm
&&
isDirty
)
{
...
...
app/assets/javascripts/notes/components/issue_note_body.vue
View file @
0fc45b6c
...
...
@@ -49,8 +49,8 @@
});
}
},
handleFormUpdate
(
note
,
parentElement
)
{
this
.
$emit
(
'handleFormUpdate'
,
note
,
parentElement
);
handleFormUpdate
(
note
,
parentElement
,
callback
)
{
this
.
$emit
(
'handleFormUpdate'
,
note
,
parentElement
,
callback
);
},
formCancelHandler
(
shouldConfirm
,
isDirty
)
{
this
.
$emit
(
'cancelFormEdition'
,
shouldConfirm
,
isDirty
);
...
...
app/assets/javascripts/notes/components/issue_note_form.vue
View file @
0fc45b6c
...
...
@@ -74,7 +74,10 @@
methods
:
{
handleUpdate
()
{
this
.
isSubmitting
=
true
;
this
.
$emit
(
'handleFormUpdate'
,
this
.
note
,
this
.
$refs
.
editNoteForm
);
this
.
$emit
(
'handleFormUpdate'
,
this
.
note
,
this
.
$refs
.
editNoteForm
,
()
=>
{
this
.
isSubmitting
=
false
;
});
},
editMyLastNote
()
{
if
(
this
.
note
===
''
)
{
...
...
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