mirror of
https://github.com/ansible/awx.git
synced 2026-03-18 01:17:35 -02:30
refactor projects list, clean up dependencies and old list generators and factory methods
This commit is contained in:
committed by
John Mitchell
parent
c95c2a4580
commit
92ac3054c6
19
awx/ui/client/features/projects/index.controller.js
Normal file
19
awx/ui/client/features/projects/index.controller.js
Normal file
@@ -0,0 +1,19 @@
|
||||
function IndexProjectsController ($scope, strings, dataset) {
|
||||
const vm = this;
|
||||
vm.strings = strings;
|
||||
vm.count = dataset.data.count;
|
||||
|
||||
$scope.$on('updateCount', (e, count) => {
|
||||
if (count) {
|
||||
vm.count = count;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
IndexProjectsController.$inject = [
|
||||
'$scope',
|
||||
'ProjectsStrings',
|
||||
'Dataset',
|
||||
];
|
||||
|
||||
export default IndexProjectsController;
|
||||
Reference in New Issue
Block a user