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.
|
|
|
/// <reference path="../../includes.ts"/>
|
|
|
|
/// <reference path="../../kubernetes/ts/kubernetesHelpers.ts"/>
|
|
|
|
/// <reference path="developerEnrichers.ts"/>
|
|
|
|
/// <reference path="developerHelpers.ts"/>
|
|
|
|
/// <reference path="developerNavigation.ts"/>
|
|
|
|
|
|
|
|
module Developer {
|
|
|
|
|
|
|
|
export var NavBarController = controller("NavBarController",
|
|
|
|
["$scope", "$location", "$routeParams", "$timeout", "KubernetesApiURL",
|
|
|
|
($scope, $location:ng.ILocationService, $routeParams, $timeout) => {
|
|
|
|
|
|
|
|
$scope.isValid = (item) => {
|
|
|
|
if (item) {
|
|
|
|
var value = item.isValid;
|
|
|
|
if (angular.isFunction(value)) {
|
|
|
|
return value(item)
|
|
|
|
} else {
|
|
|
|
return angular.isUndefined(value) || value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}]);
|
|
|
|
}
|