mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 06:58:06 -03:30
20 lines
415 B
JavaScript
20 lines
415 B
JavaScript
function IndexProjectsController ($scope, strings, dataset) {
|
|
const vm = this;
|
|
vm.strings = strings;
|
|
vm.count = dataset.data.count;
|
|
|
|
$scope.$on('updateCount', (e, count) => {
|
|
if (typeof count === 'number') {
|
|
vm.count = count;
|
|
}
|
|
});
|
|
}
|
|
|
|
IndexProjectsController.$inject = [
|
|
'$scope',
|
|
'ProjectsStrings',
|
|
'Dataset',
|
|
];
|
|
|
|
export default IndexProjectsController;
|