1
0
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:
Chris Houseknecht 2014-07-02 20:46:56 -04:00
parent 061d1acaa5
commit 67daa1599b
3 changed files with 13 additions and 3 deletions

View File

@ -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,

View File

@ -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();
});

View File

@ -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>