Skip to content

Commit

Permalink
Merge "Closes-bug: #1646340 - Project dropdowns in breadcrumb are not…
Browse files Browse the repository at this point in the history
… showing data as expected" into R3.2
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Dec 8, 2016
2 parents 46bf4c9 + bbbf57a commit 113aad5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions webroot/common/ui/js/controller.constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ define([
var CTConstants = function () {

this.URL_ALL_DOMAINS = '/api/tenants/config/domains';
this.URL_ALL_PROJECTS = '/api/tenants/config/all-projects';
this.URL_PROJECTS = '/api/tenants/config/projects';
this.URL_ALL_PROJECTS = '/api/tenants/config/projects';
this.URL_ALL_PROJECTS_VCENTER_OR_CONFIG = '/api/tenants/projects';

this.URL_PROJECT_CONNECTED_GRAPH = '/api/tenant/monitoring/project-connected-graph?fqName={0}';
Expand Down
2 changes: 1 addition & 1 deletion webroot/common/ui/js/controller.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ define([
var modelConfig = {
remote: {
ajaxConfig: {
url: ctwc.URL_ALL_PROJECTS
url: ctwc.getProjectsURL(domainObj, dropdownOptions)
},
dataParser: function(response) {
return $.map(response.projects, function (n, i) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ define([
body: JSON.stringify(TestMockdata.domainsMockData)
}));
responses.push(cotr.createFakeServerResponse( {
url: cttu.getRegExForUrl(ctwc.URL_PROJECTS),
url: cttu.getRegExForUrl(ctwc.URL_ALL_PROJECTS),
body: JSON.stringify(TestMockdata.projectMockData)
}));

Expand Down

0 comments on commit 113aad5

Please sign in to comment.