mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
fixed sockets on inventory page
This commit is contained in:
parent
22bbf21c09
commit
7f550fb1c2
@ -1011,7 +1011,7 @@ var tower = angular.module('Tower', [
|
||||
$rootScope.$emit('JobStatusChange-portal', data);
|
||||
} else if (urlToCheck === '/projects') {
|
||||
$rootScope.$emit('JobStatusChange-projects', data);
|
||||
} else if (/\/inventory\/(\d)+\/manage/.test(urlToCheck)) {
|
||||
} else if (/\/inventories\/(\d)+\/manage/.test(urlToCheck)) {
|
||||
$rootScope.$emit('JobStatusChange-inventory', data);
|
||||
}
|
||||
});
|
||||
|
||||
@ -1053,10 +1053,10 @@ export function InventoriesManage ($log, $scope, $rootScope, $location,
|
||||
});
|
||||
|
||||
// start watching for real-time updates
|
||||
if ($scope.removeWatchUpdateStatus) {
|
||||
$scope.removeWatchUpdateStatus();
|
||||
if ($rootScope.removeWatchUpdateStatus) {
|
||||
$rootScope.removeWatchUpdateStatus();
|
||||
}
|
||||
$scope.removeWatchUpdateStatus = $scope.$on('JobStatusChange-inventory', function(data) {
|
||||
$rootScope.removeWatchUpdateStatus = $rootScope.$on('JobStatusChange-inventory', function(e, data) {
|
||||
var stat, group;
|
||||
if (data.group_id) {
|
||||
group = Find({ list: $scope.groups, key: 'id', val: data.group_id });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user