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
1
Merge Requests
1
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
nexedi
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
app/assets/javascripts/notes/components/issue_note.vue
app/assets/javascripts/notes/components/issue_note.vue
+3
-2
app/assets/javascripts/notes/components/issue_note_body.vue
app/assets/javascripts/notes/components/issue_note_body.vue
+2
-2
app/assets/javascripts/notes/components/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