Files
awx/awx/ui/client/features/templates/index.controller.js
2018-04-09 15:04:52 -04:00

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;