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
bb8c4ee5
Commit
bb8c4ee5
authored
Apr 12, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
4c5d60f9
ca8c3528
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
4 deletions
+30
-4
app/assets/javascripts/diffs/components/app.vue
app/assets/javascripts/diffs/components/app.vue
+6
-1
app/assets/javascripts/diffs/index.js
app/assets/javascripts/diffs/index.js
+2
-0
app/views/projects/deployments/_actions.haml
app/views/projects/deployments/_actions.haml
+1
-1
app/views/projects/environments/_form.html.haml
app/views/projects/environments/_form.html.haml
+1
-1
app/views/projects/merge_requests/show.html.haml
app/views/projects/merge_requests/show.html.haml
+2
-1
changelogs/unreleased/60224-btn-env.yml
changelogs/unreleased/60224-btn-env.yml
+5
-0
changelogs/unreleased/60261-save-btn-env.yml
changelogs/unreleased/60261-save-btn-env.yml
+5
-0
spec/javascripts/diffs/components/app_spec.js
spec/javascripts/diffs/components/app_spec.js
+8
-0
No files found.
app/assets/javascripts/diffs/components/app.vue
View file @
bb8c4ee5
...
...
@@ -64,6 +64,11 @@ export default {
required
:
false
,
default
:
''
,
},
isFluidLayout
:
{
type
:
Boolean
,
required
:
false
,
default
:
false
,
},
},
data
()
{
const
treeWidth
=
...
...
@@ -116,7 +121,7 @@ export default {
return
this
.
treeWidth
<=
TREE_HIDE_STATS_WIDTH
;
},
isLimitedContainer
()
{
return
!
this
.
showTreeList
&&
!
this
.
isParallelView
;
return
!
this
.
showTreeList
&&
!
this
.
isParallelView
&&
!
this
.
isFluidLayout
;
},
},
watch
:
{
...
...
app/assets/javascripts/diffs/index.js
View file @
bb8c4ee5
...
...
@@ -71,6 +71,7 @@ export default function initDiffsApp(store) {
helpPagePath
:
dataset
.
helpPagePath
,
currentUser
:
JSON
.
parse
(
dataset
.
currentUserData
)
||
{},
changesEmptyStateIllustration
:
dataset
.
changesEmptyStateIllustration
,
isFluidLayout
:
parseBoolean
(
dataset
.
isFluidLayout
),
};
},
computed
:
{
...
...
@@ -97,6 +98,7 @@ export default function initDiffsApp(store) {
helpPagePath
:
this
.
helpPagePath
,
shouldShow
:
this
.
activeTab
===
'
diffs
'
,
changesEmptyStateIllustration
:
this
.
changesEmptyStateIllustration
,
isFluidLayout
:
this
.
isFluidLayout
,
},
});
},
...
...
app/views/projects/deployments/_actions.haml
View file @
bb8c4ee5
...
...
@@ -10,5 +10,5 @@
-
actions
.
each
do
|
action
|
-
next
unless
can?
(
current_user
,
:update_build
,
action
)
%li
=
link_to
[
:play
,
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
action
],
method: :post
,
rel:
'nofollow'
,
class:
'btn'
do
=
link_to
[
:play
,
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
action
],
method: :post
,
rel:
'nofollow'
do
%span
=
action
.
name
app/views/projects/environments/_form.html.haml
View file @
bb8c4ee5
...
...
@@ -17,5 +17,5 @@
=
f
.
url_field
:external_url
,
class:
'form-control'
.form-actions
=
f
.
submit
_
(
'Save'
),
class:
'btn btn-s
ave
'
=
f
.
submit
_
(
'Save'
),
class:
'btn btn-s
uccess
'
=
link_to
_
(
'Cancel'
),
project_environments_path
(
@project
),
class:
'btn btn-cancel'
app/views/projects/merge_requests/show.html.haml
View file @
bb8c4ee5
...
...
@@ -82,7 +82,8 @@
help_page_path:
suggest_changes_help_path
,
current_user_data:
UserSerializer
.
new
(
project:
@project
).
represent
(
current_user
,
{},
MergeRequestUserEntity
).
to_json
,
project_path:
project_path
(
@merge_request
.
project
),
changes_empty_state_illustration:
image_path
(
'illustrations/merge_request_changes_empty.svg'
)
}
}
changes_empty_state_illustration:
image_path
(
'illustrations/merge_request_changes_empty.svg'
),
is_fluid_layout:
fluid_layout
.
to_s
}
}
.mr-loading-status
=
spinner
...
...
changelogs/unreleased/60224-btn-env.yml
0 → 100644
View file @
bb8c4ee5
---
title
:
Fixes actions dropdowns in environments page
merge_request
:
27160
author
:
type
:
fixed
changelogs/unreleased/60261-save-btn-env.yml
0 → 100644
View file @
bb8c4ee5
---
title
:
Fixes create button background for Environments form
merge_request
:
27161
author
:
type
:
fixed
spec/javascripts/diffs/components/app_spec.js
View file @
bb8c4ee5
...
...
@@ -75,6 +75,14 @@ describe('diffs/components/app', () => {
expect
(
wrapper
.
contains
(
'
.container-limited.limit-container-width
'
)).
toBe
(
false
);
});
it
(
'
does not add container-limiting classes when isFluidLayout
'
,
()
=>
{
createComponent
({
isFluidLayout
:
true
},
({
state
})
=>
{
state
.
diffs
.
isParallelView
=
false
;
});
expect
(
wrapper
.
contains
(
'
.container-limited.limit-container-width
'
)).
toBe
(
false
);
});
it
(
'
displays loading icon on loading
'
,
()
=>
{
createComponent
({},
({
state
})
=>
{
state
.
diffs
.
isLoading
=
true
;
...
...
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