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 #517 from ammendonca/HWK-FIX-SUBTAB
Browse files Browse the repository at this point in the history
Fix URLs SubTab not showing and pages not working
  • Loading branch information
mtho11 committed Oct 2, 2015
2 parents 173e3a7 + 22ca04f commit 9049668
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// <reference path='../../includes.ts'/>
module Subtab {

export var pluginName = 'subdtab';
export var pluginName = 'subtab';

export var log:Logging.Logger = Logger.get(pluginName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ module Topbar {
}

export var TopbarController = _module.controller('Topbar.TopbarController',
['$scope', '$rootScope', '$location',
($scope, $rootScope, $location) => {
['$scope', '$rootScope', '$location', 'HawkularNav',
($scope, $rootScope, $location, HawkularNav /* keep HawkularNav! */) => {

$scope.getClass = function (path) {
return $location.path().indexOf(path) === 0 ? 'active' : '';
Expand Down
4 changes: 2 additions & 2 deletions console/src/main/scripts/plugins/metrics/html/url-alerts.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class="hk-screen-content" ng-controller="MetricsAlertController as mac">
<hawkular-sidebar ng-controller="Subtab.SubtabController">
<hawkular-subtab ng-controller="Subtab.SubtabController">
<div class="hk-nav-tabs-container">
<ul class="nav nav-tabs nav-tabs-pf">
<li class="active"><a href="/hawkular-ui/url/alerts/{{mac.$routeParams.resourceId}}/{{mac.$routeParams.timeOffset}}" class="hk-alerts">All Alerts</a></li>
<li><a href="/hawkular-ui/url/availability/{{mac.$routeParams.resourceId}}/{{mac.$routeParams.timeOffset}}" class="hk-availability">Availability</a></li>
<li><a href="/hawkular-ui/url/response-time/{{mac.$routeParams.resourceId}}/{{mac.$routeParams.timeOffset}}" class="hk-response-time">Response Time</a></li>
</ul>
</div>
</hawkular-sidebar>
</hawkular-subtab>

<section id="hk-alerts" class="hk-tab-content">
<div class="hk-info-top clearfix">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="hk-screen-content" ng-controller="MetricsAvailabilityController as vm">
<hawkular-sidebar ng-controller="Subtab.SubtabController">
<hawkular-subtab ng-controller="Subtab.SubtabController">
<div class="hk-nav-tabs-container">
<ul class="nav nav-tabs nav-tabs-pf">
<li><a href="/hawkular-ui/url/alerts/{{vm.$routeParams.resourceId}}/{{vm.$routeParams.timeOffset}}"
Expand All @@ -11,7 +11,7 @@
class="hk-response-time">Response Time</a></li>
</ul>
</div>
</hawkular-sidebar>
</hawkular-subtab>

<section id="hk-availability" class="hk-tab-content">

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<div class="hk-screen-content" ng-controller="MetricsViewController as vm">

<hawkular-sidebar ng-controller="Subtab.SubtabController">
<hawkular-subtab ng-controller="Subtab.SubtabController">
<div class="hk-nav-tabs-container">
<ul class="nav nav-tabs nav-tabs-pf">
<li><a href="/hawkular-ui/url/alerts/{{vm.$routeParams.resourceId}}/{{vm.$routeParams.timeOffset}}" class="hk-alerts">All Alerts</a></li>
<li><a href="/hawkular-ui/url/availability/{{vm.$routeParams.resourceId}}/{{vm.$routeParams.timeOffset}}" class="hk-availability">Availability</a></li>
<li class="active"><a href="/hawkular-ui/url/response-time/{{vm.$routeParams.resourceId}}/{{vm.$routeParams.timeOffset}}" class="hk-response-time">Response Time</a></li>
</ul>
</div>
</hawkular-sidebar>
</hawkular-subtab>

<section class="hk-tab-content" id="hk-response-time">

Expand Down

0 comments on commit 9049668

Please sign in to comment.