mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-02 12:51:48 -05:00
20 lines
398 B
JavaScript
20 lines
398 B
JavaScript
function IndexJobsController ($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;
|
|
}
|
|
});
|
|
}
|
|
|
|
IndexJobsController.$inject = [
|
|
'$scope',
|
|
'JobsStrings',
|
|
'Dataset'
|
|
];
|
|
|
|
export default IndexJobsController;
|