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
Tatuya Kamada
gitlab-ce
Commits
83925ef4
Commit
83925ef4
authored
Aug 10, 2016
by
Douwe Maan
Committed by
Fatih Acet
Aug 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a regular flash message after resolution is complete
parent
1711a384
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+1
-2
app/views/projects/merge_requests/widget/_heading.html.haml
app/views/projects/merge_requests/widget/_heading.html.haml
+0
-6
No files found.
app/controllers/projects/merge_requests_controller.rb
View file @
83925ef4
...
@@ -165,8 +165,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
...
@@ -165,8 +165,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
begin
begin
MergeRequests
::
ResolveService
.
new
(
@merge_request
.
source_project
,
current_user
,
params
).
execute
(
@merge_request
)
MergeRequests
::
ResolveService
.
new
(
@merge_request
.
source_project
,
current_user
,
params
).
execute
(
@merge_request
)
flash
[
:conflicts_message
]
=
'Merge conflicts resolved.'
flash
[
:notice
]
=
'All merge conflicts were resolved. The merge request can now be merged.'
flash
.
keep
render
json:
{
redirect_to:
namespace_project_merge_request_url
(
@project
.
namespace
,
@project
,
@merge_request
,
resolved_conflicts:
true
)
}
render
json:
{
redirect_to:
namespace_project_merge_request_url
(
@project
.
namespace
,
@project
,
@merge_request
,
resolved_conflicts:
true
)
}
rescue
Gitlab
::
Conflict
::
File
::
MissingResolution
=>
e
rescue
Gitlab
::
Conflict
::
File
::
MissingResolution
=>
e
...
...
app/views/projects/merge_requests/widget/_heading.html.haml
View file @
83925ef4
...
@@ -42,9 +42,3 @@
...
@@ -42,9 +42,3 @@
.ci_widget.ci-error
{
style:
"display:none"
}
.ci_widget.ci-error
{
style:
"display:none"
}
=
icon
(
"times-circle"
)
=
icon
(
"times-circle"
)
Could not connect to the CI server. Please check your settings and try again.
Could not connect to the CI server. Please check your settings and try again.
-
if
flash
[
:conflicts_message
]
.mr-widget-heading
.ci_widget
=
ci_icon_for_status
(
'success'
)
=
flash
[
:conflicts_message
]
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