Skip to content

Commit

Permalink
Change Double-quote to single-quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
mtho11 committed Mar 17, 2015
1 parent 7324d5c commit 8c6c6fb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
16 changes: 8 additions & 8 deletions dist/hawkular-ui-components-metrics.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions plugins/metrics/plugins/metrics/ts/addUrlPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module HawkularMetrics {
}
};

this.$log.info("Adding new Resource Url to Hawkular-inventory: " + url);
this.$log.info('Adding new Resource Url to Hawkular-inventory: ' + url);

globalChartTimeRange = new ChartTimeRange(1);

Expand All @@ -55,7 +55,7 @@ module HawkularMetrics {
globalMetricId = newResource.id;
globalResourceUrl = resource.parameters.url;
console.dir(newResource);
this.$log.info("New Resource ID: " + globalMetricId + " created for url: " + globalResourceUrl);
this.$log.info('New Resource ID: ' + globalMetricId + ' created for url: ' + globalResourceUrl);
var metrics = [{
name: globalMetricId + '.status.duration',
unit: 'MILLI_SECOND',
Expand All @@ -72,8 +72,8 @@ module HawkularMetrics {
tenantId: globalTenantId,
resourceId: newResource.id
}, metrics).$promise.then((newMetrics) => {
toastr.info("Your data is being collected. Please be patient (should be about another minute).");
this.$location.url("/metrics/responseTime");
toastr.info('Your data is being collected. Please be patient (should be about another minute).');
this.$location.url('/metrics/responseTime');
});

});
Expand Down
18 changes: 9 additions & 9 deletions plugins/metrics/plugins/metrics/ts/metricsPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ module HawkularMetrics {

metricsTab = navBuilder.create()
.id(HawkularMetrics.pluginName)
.title(() => "Metrics")
.href(() => "/metrics")
.subPath("Add Url", "addUrl", navBuilder.join(HawkularMetrics.templatePath, 'add-url.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'))
.title(() => 'Metrics')
.href(() => '/metrics')
.subPath('Add Url', 'addUrl', navBuilder.join(HawkularMetrics.templatePath, 'add-url.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'))
.build();

navBuilder.configureRouting($routeProvider, metricsTab);
Expand All @@ -42,12 +42,12 @@ module HawkularMetrics {

_module.run(['HawtioNav', (HawtioNav:HawtioMainNav.Registry) => {
HawtioNav.add(metricsTab);
log.debug("loaded Metrics Plugin");
log.debug('loaded Metrics Plugin');
}]);

_module.directive('ngEnter', function () {
return function (scope, element, attrs) {
element.bind("keydown keypress", function (event) {
element.bind('keydown keypress', function (event) {
if (event.which === 13) {
scope.$apply(function () {
scope.$eval(attrs.ngEnter);
Expand Down

0 comments on commit 8c6c6fb

Please sign in to comment.