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
de6266d6
Commit
de6266d6
authored
Feb 17, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '27920-both-wip-messages-showing' into 'master'
Dispatch needed JS when creating a new MR in diff view Closes #27920 See merge request !9238
parents
02443d1d
3c4dc433
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
dispatcher.js.es6
app/assets/javascripts/dispatcher.js.es6
+1
-0
application_controller.rb
app/controllers/projects/application_controller.rb
+0
-1
merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+3
-0
27920-both-wip-messages-showing.yml
changelogs/unreleased/27920-both-wip-messages-showing.yml
+4
-0
No files found.
app/assets/javascripts/dispatcher.js.es6
View file @
de6266d6
...
...
@@ -118,6 +118,7 @@ const ShortcutsBlob = require('./shortcuts_blob');
new gl.IssuableTemplateSelectors();
break;
case 'projects:merge_requests:new':
case 'projects:merge_requests:new_diffs':
case 'projects:merge_requests:edit':
new gl.Diff();
shortcut_handler = new ShortcutsNavigation();
...
...
app/controllers/projects/application_controller.rb
View file @
de6266d6
...
...
@@ -83,7 +83,6 @@ class Projects::ApplicationController < ApplicationController
end
def
apply_diff_view_cookie!
@show_changes_tab
=
params
[
:view
].
present?
cookies
.
permanent
[
:diff_view
]
=
params
.
delete
(
:view
)
if
params
[
:view
].
present?
end
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
de6266d6
...
...
@@ -245,6 +245,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
respond_to
do
|
format
|
format
.
html
do
define_new_vars
@show_changes_tab
=
true
render
"new"
end
format
.
json
do
...
...
@@ -616,6 +617,8 @@ class Projects::MergeRequestsController < Projects::ApplicationController
@labels
=
LabelsFinder
.
new
(
current_user
,
project_id:
@project
.
id
).
execute
@show_changes_tab
=
params
[
:show_changes
].
present?
define_pipelines_vars
end
...
...
changelogs/unreleased/27920-both-wip-messages-showing.yml
0 → 100644
View file @
de6266d6
---
title
:
Dispatch needed JS when creating a new MR in diff view
merge_request
:
author
:
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