mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Merge pull request #1296 from jakemcdermott/bug-1294
update badge count on search
This commit is contained in:
@@ -1,12 +1,19 @@
|
|||||||
function IndexTemplatesController (strings, dataset) {
|
function IndexTemplatesController ($scope, strings, dataset) {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
vm.strings = strings;
|
vm.strings = strings;
|
||||||
vm.count = dataset.data.count;
|
vm.count = dataset.data.count;
|
||||||
|
|
||||||
|
$scope.$on('updateDataset', (e, { count }) => {
|
||||||
|
if (count) {
|
||||||
|
vm.count = count;
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
IndexTemplatesController.$inject = [
|
IndexTemplatesController.$inject = [
|
||||||
|
'$scope',
|
||||||
'TemplatesStrings',
|
'TemplatesStrings',
|
||||||
'Dataset'
|
'Dataset',
|
||||||
];
|
];
|
||||||
|
|
||||||
export default IndexTemplatesController;
|
export default IndexTemplatesController;
|
||||||
|
|||||||
Reference in New Issue
Block a user