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.
aggregation-platform/plugins/developer/ts/projectSelector.ts

20 lines
620 B

/// <reference path="developerPlugin.ts"/>
module Developer {
_module.controller('Developer.ProjectSelector', ['$scope', '$routeParams', 'KubernetesModel', ($scope, $routeParams, KubernetesModel) => {
var projectId = $routeParams['projectId'] || $routeParams['project'] || $routeParams['id'];
if (projectId) {
$scope.projectId = projectId;
$scope.model = KubernetesModel
$scope.$watch('model.buildconfigs', (buildconfigs) => {
$scope.projects = buildconfigs;
});
} else {
log.info("no project ID in routeParams: ", $routeParams);
}
}]);
}