Skip to content

Commit

Permalink
Passing routeParams from scope to routeParams object.
Browse files Browse the repository at this point in the history
  • Loading branch information
atooni committed Oct 7, 2013
1 parent 9ba0c98 commit 7c36208
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hawtio-web/src/main/webapp/app/osgi/js/svc-dependencies.ts
Expand Up @@ -42,11 +42,14 @@ module Osgi {
size_x: 2,
size_y: 2
});
return "#/dashboard/add?tab=dashboard" +

var addLink = "#/dashboard/add?tab=dashboard" +
"&href=" + encodeURIComponent(href) +
"&routeParams=" + encodeURIComponent(routeParams) +
"&size=" + encodeURIComponent(size) +
"&title=" + encodeURIComponent(title);

return addLink;
};

$scope.$on('$routeUpdate', () => {
Expand All @@ -65,6 +68,11 @@ module Osgi {
$scope.hideUnused
);

$routeParams["bundleFilter"] = $scope.bundleFilter;
$routeParams["packageFilter"] = $scope.packageFilter;
$routeParams["hideUnused"] = $scope.hideUnused ? "true" : "false";
$routeParams["view"] = $scope.selectView;

$scope.graph = graphBuilder.buildGraph();
Core.$apply($scope);
};
Expand Down

0 comments on commit 7c36208

Please sign in to comment.