You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
587 B
25 lines
587 B
9 years ago
|
/// <reference path="../../includes.ts"/>
|
||
|
/// <reference path="kubernetesHelpers.ts"/>
|
||
|
module Kubernetes {
|
||
|
|
||
|
export function selectSubNavBar($scope, tabName, newSubTabLabel) {
|
||
|
var foundTab = null;
|
||
|
angular.forEach($scope.subTabConfig, (tab) => {
|
||
|
if (tabName === tab.label || tabName === tab.id) {
|
||
|
foundTab = tab;
|
||
|
}
|
||
|
});
|
||
|
var breadcrumbConfig = $scope.breadcrumbConfig;
|
||
|
if (foundTab && breadcrumbConfig) {
|
||
|
breadcrumbConfig.push(foundTab);
|
||
|
$scope.subTabConfig = [
|
||
|
{
|
||
|
label: newSubTabLabel
|
||
|
}
|
||
|
];
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|