@@ -60,30 +60,28 @@
{{/if}}
-
- {{#sortable-table
- tableClassNames="bordered"
- bulkActions=true
- rightActions=true
- paging=true
- pagingLabel="pagination.project"
- search=true
- sortBy=sortBy
- descending=descending
- headers=headers
- body=model.projects
- fullRows=true
- stickyHeader=false
- as |sortable kind p dt|
- }}
- {{#if (eq kind "row")}}
- {{project-row model=p dt=dt}}
- {{else if (eq kind "nomatch")}}
-
| {{t 'clusterBox.noMatch'}} |
- {{else if (eq kind "norows")}}
- | {{t 'clusterBox.noData'}} |
- {{else if (eq kind "right-actions")}}
- {{#link-to "authenticated.clusters.new-project" (query-params clusterId=model.id) class="btn btn-sm bg-primary"}}{{t 'clustersPage.newProject'}}{{/link-to}}
- {{/if}}
- {{/sortable-table}}
-
+{{#sortable-table
+ tableClassNames="bordered"
+ bulkActions=true
+ rightActions=true
+ paging=true
+ pagingLabel="pagination.project"
+ search=true
+ sortBy=sortBy
+ descending=descending
+ headers=headers
+ body=model.projects
+ fullRows=true
+ stickyHeader=false
+ as |sortable kind p dt|
+}}
+ {{#if (eq kind "row")}}
+ {{project-row model=p dt=dt}}
+ {{else if (eq kind "nomatch")}}
+
| {{t 'clusterBox.noMatch'}} |
+ {{else if (eq kind "norows")}}
+
| {{t 'clusterBox.noData'}} |
+ {{else if (eq kind "right-actions")}}
+ {{#link-to "authenticated.clusters.new-project" (query-params clusterId=model.id) class="btn btn-sm bg-primary"}}{{t 'clustersPage.newProject'}}{{/link-to}}
+ {{/if}}
+{{/sortable-table}}
diff --git a/app/components/page-header-environment/component.js b/app/components/page-header-environment/component.js
index 531c60d31..fcd3714e2 100644
--- a/app/components/page-header-environment/component.js
+++ b/app/components/page-header-environment/component.js
@@ -24,14 +24,19 @@ export default Ember.Component.extend({
let clusterId = cluster.get('id');
let entry = out.findBy('clusterId', clusterId);
if ( !entry ) {
- entry = {clusterId: clusterId, cluster: cluster, projects: []};
+ entry = {clusterId: clusterId, cluster: cluster, projects: [], show: false};
out.push(entry);
}
- entry.projects.push(project);
+ if ( project.get('clusterOwner') ) {
+ entry.system = project;
+ } else {
+ entry.projects.push(project);
+ entry.show = true;
+ }
});
- return out;
+ return out.filterBy('show',true);;
}.property('projectChoices.@each.clusterId'),
projectIsMissing: function() {
diff --git a/app/components/page-header-environment/template.hbs b/app/components/page-header-environment/template.hbs
index c54ce4e15..d48566908 100644
--- a/app/components/page-header-environment/template.hbs
+++ b/app/components/page-header-environment/template.hbs
@@ -1,28 +1,25 @@
{{~#if project~}}
{{#if (gt byCluster.length 1)}}
-
-
-
-
+
+
{{else}}
@@ -36,14 +33,25 @@