Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use a better default size for JMX charts when added to the dashboard
  • Loading branch information
gashcrumb committed Sep 26, 2013
1 parent 2219fee commit 422d2e0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion hawtio-web/src/main/webapp/app/core/js/navbar.ts
Expand Up @@ -63,7 +63,19 @@ module Core {

$scope.addToDashboardLink = () => {
var href = "#" + $location.path() + workspace.hash();
return "#/dashboard/add?tab=dashboard&href=" + encodeURIComponent(href);

var answer = "#/dashboard/add?tab=dashboard&href=" + encodeURIComponent(href);

if ($location.url().has("/jmx/charts")) {
var size = {
size_x: 4,
size_y: 3
}

answer += "&size=" + encodeURIComponent(angular.toJson(size));
}

return answer;
};

$scope.isActive = (nav) => {
Expand Down

0 comments on commit 422d2e0

Please sign in to comment.