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
1e3881b0
Commit
1e3881b0
authored
Oct 16, 2018
by
Phil Hughes
Committed by
Nick Thomas
Dec 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated ajax error message with returned errors
parent
4d801a70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
app/assets/javascripts/notes/components/comment_form.vue
app/assets/javascripts/notes/components/comment_form.vue
+10
-6
No files found.
app/assets/javascripts/notes/components/comment_form.vue
View file @
1e3881b0
...
@@ -247,15 +247,19 @@ Please check your network connection and try again.`;
...
@@ -247,15 +247,19 @@ Please check your network connection and try again.`;
}
else
{
}
else
{
this
.
reopenIssue
()
this
.
reopenIssue
()
.
then
(()
=>
this
.
enableButton
())
.
then
(()
=>
this
.
enableButton
())
.
catch
(()
=>
{
.
catch
((
{
data
}
)
=>
{
this
.
enableButton
();
this
.
enableButton
();
this
.
toggleStateButtonLoading
(
false
);
this
.
toggleStateButtonLoading
(
false
);
Flash
(
let
errorMessage
=
sprintf
(
sprintf
(
__
(
'
Something went wrong while reopening the %{issuable}. Please try again later
'
),
__
(
'
Something went wrong while reopening the %{issuable}. Please try again later
'
),
{
issuable
:
this
.
noteableDisplayName
},
{
issuable
:
this
.
noteableDisplayName
},
),
);
);
if
(
data
)
{
errorMessage
=
Object
.
values
(
data
).
join
(
'
\n
'
);
}
Flash
(
errorMessage
);
});
});
}
}
},
},
...
...
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