mirror of
https://github.com/ansible/awx.git
synced 2026-02-14 01:34:45 -03:30
20 lines
388 B
JavaScript
20 lines
388 B
JavaScript
function IndexTemplatesController ($scope, strings, dataset) {
|
|
let vm = this;
|
|
vm.strings = strings;
|
|
vm.count = dataset.data.count;
|
|
|
|
$scope.$on('updateDataset', (e, { count }) => {
|
|
if (count) {
|
|
vm.count = count;
|
|
}
|
|
});
|
|
}
|
|
|
|
IndexTemplatesController.$inject = [
|
|
'$scope',
|
|
'TemplatesStrings',
|
|
'Dataset',
|
|
];
|
|
|
|
export default IndexTemplatesController;
|