mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 16:51:11 +03:00
Home hosts page
Fixed broken edit dialog
This commit is contained in:
parent
061d1acaa5
commit
67daa1599b
@ -623,6 +623,10 @@ function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList,
|
||||
|
||||
LoadBreadCrumbs();
|
||||
|
||||
$scope.refreshHosts = function() {
|
||||
$scope.search(list.iterator);
|
||||
};
|
||||
|
||||
$scope.viewJob = function(id) {
|
||||
ViewJob({ scope: $scope, id: id });
|
||||
};
|
||||
@ -649,7 +653,7 @@ function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList,
|
||||
});
|
||||
if (host) {
|
||||
HostsEdit({
|
||||
scope: $scope,
|
||||
host_scope: $scope,
|
||||
host_id: host_id,
|
||||
inventory_id: host.inventory,
|
||||
group_id: null,
|
||||
|
@ -621,7 +621,12 @@ function($rootScope, $location, $log, $routeParams, Rest, Alert, HostForm, Gener
|
||||
catch(err) {
|
||||
// ignore
|
||||
}
|
||||
group_scope.refreshHosts();
|
||||
if (group_scope && group_scope.refreshHosts) {
|
||||
group_scope.refreshHosts();
|
||||
}
|
||||
if (parent_scope.refreshHosts) {
|
||||
parent_scope.refreshHosts();
|
||||
}
|
||||
scope.$destroy();
|
||||
});
|
||||
|
||||
|
@ -22,4 +22,5 @@
|
||||
</div>
|
||||
|
||||
<div ng-include="'/static/partials/schedule_dialog.html'"></div>
|
||||
<div ng-include="'/static/partials/logviewer.html'"></div>
|
||||
<div ng-include="'/static/partials/logviewer.html'"></div>
|
||||
<div id="host-modal-dialog" style="display: none;" class="dialog-content"></div>
|
Loading…
Reference in New Issue
Block a user