Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #267 from Jiri-Kremser/HAWKULAR-373
Browse files Browse the repository at this point in the history
HAWKULAR-372 - removing the tenantId parameter -> fixing the 404 in J…
  • Loading branch information
mtho11 committed Jun 26, 2015
2 parents 54b75d6 + 6e52e09 commit 9292e7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module Sidebar {

$scope.getUrlFromId = function(id) {
if(!$scope.resource) {
$scope.resource = HawkularInventory.Resource.get({tenantId: $rootScope.currentPersona.id, environmentId: globalEnvironmentId, resourceId: id}, function(data) {
$scope.resource = HawkularInventory.Resource.get({environmentId: globalEnvironmentId, resourceId: id}, function(data) {
$scope.resourceName = data.properties.url;
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Topbar {
var defaultOffset = 1 * 60 * 60 * 1000;

var init = (tenantId: TenantId) => {
HawkularInventory.Resource.query({tenantId: tenantId, environmentId: globalEnvironmentId}, (resourceList) => {
HawkularInventory.Resource.query({environmentId: globalEnvironmentId}, (resourceList) => {
$rootScope.hkResources = resourceList;
for (var i = 0; i < resourceList.length; i++) {
if(resourceList[i].id === $rootScope.hkParams.resourceId) {
Expand All @@ -52,7 +52,7 @@ module Topbar {
$rootScope.hkEndTimestamp = $routeParams.endTimestamp || moment().valueOf();
$rootScope.hkStartTimestamp = moment().subtract($rootScope.hkParams.timeOffset, 'milliseconds').valueOf();

HawkularInventory.Resource.query({tenantId: tenantId, environmentId: globalEnvironmentId}, (resourceList) => {
HawkularInventory.Resource.query({environmentId: globalEnvironmentId}, (resourceList) => {
$rootScope.hkResources = resourceList;
for (var i = 0; i < resourceList.length; i++) {
if(resourceList[i].id === $rootScope.hkParams.resourceId) {
Expand Down

0 comments on commit 9292e7f

Please sign in to comment.