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
e76d4f5f
Commit
e76d4f5f
authored
Feb 22, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix filtering environments for deploy boards
parent
86c2d0de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/environments/stores/environments_store.js.es6
...javascripts/environments/stores/environments_store.js.es6
+4
-4
No files found.
app/assets/javascripts/environments/stores/environments_store.js.es6
View file @
e76d4f5f
...
...
@@ -46,15 +46,15 @@ class EnvironmentsStore {
let filtered = {};
if (env.latest) {
filtered = Object.assign(
filtered
, env, env.latest);
filtered = Object.assign(
{}
, env, env.latest);
delete filtered.latest;
} else {
filtered = Object.assign(
filtered
, env);
filtered = Object.assign(
{}
, env);
}
if (
env
.size > 1) {
if (
filtered
.size > 1) {
filtered = Object.assign(filtered, env, { isFolder: true, folderName: env.name });
} else if (
env.size === 1 && env
.rollout_status) {
} else if (
filtered.size === 1 && filtered
.rollout_status) {
filtered = Object.assign(filtered, env, {
hasDeployBoard: true,
isDeployBoardVisible: false,
...
...
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