Skip to content

Commit

Permalink
Correct the nav target page from add page and change home-list.html t…
Browse files Browse the repository at this point in the history
…o home.html because eventually the add-url page will become part of the home.html (if there are no urls).
  • Loading branch information
mtho11 committed Mar 11, 2015
1 parent 7088e46 commit eff6780
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/hawkular-ui-components-metrics.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions plugins/metrics/plugins/metrics/ts/addUrlPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,13 @@ module HawkularMetrics {
}];


/// @todo: this will become the 'Metrics Selection' screen once we get that
/// For right now we will just Register a couple of metrics automatically
this.HawkularInventory.Metric.save({
tenantId: globalTenantId,
resourceId: newResource.id
}, metrics).$promise.then((newMetrics) => {
toastr.info("Your data is being collected. Please be patient (should be about another minute).");
/// Hop on over to the metricsView page for charting
this.$location.url("/metrics/metricsResponse");
this.$location.url("/metrics/responseTime");
});

});
Expand Down
2 changes: 1 addition & 1 deletion plugins/metrics/plugins/metrics/ts/metricsPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module HawkularMetrics {
.title(() => "Metrics")
.href(() => "/metrics")
.subPath("Add Url", "addUrl", navBuilder.join(HawkularMetrics.templatePath, 'add-url.html'))
.subPath("Home List", "homeList", navBuilder.join(HawkularMetrics.templatePath, 'home-list.html'))
.subPath("Home", "home", navBuilder.join(HawkularMetrics.templatePath, 'home.html'))
.subPath("Response Time", "responseTime", navBuilder.join(HawkularMetrics.templatePath, 'response-time.html'))
.subPath("Up/Downtime", "upDowntime", navBuilder.join(HawkularMetrics.templatePath, 'up-downtime.html'))
.subPath("Alerts", "alerts", navBuilder.join(HawkularMetrics.templatePath, 'alerts.html'))
Expand Down

0 comments on commit eff6780

Please sign in to comment.