mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-22 16:01:48 -05:00
Home hosts page
Fixed broken edit dialog
This commit is contained in:
@@ -623,6 +623,10 @@ function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList,
|
|||||||
|
|
||||||
LoadBreadCrumbs();
|
LoadBreadCrumbs();
|
||||||
|
|
||||||
|
$scope.refreshHosts = function() {
|
||||||
|
$scope.search(list.iterator);
|
||||||
|
};
|
||||||
|
|
||||||
$scope.viewJob = function(id) {
|
$scope.viewJob = function(id) {
|
||||||
ViewJob({ scope: $scope, id: id });
|
ViewJob({ scope: $scope, id: id });
|
||||||
};
|
};
|
||||||
@@ -649,7 +653,7 @@ function HomeHosts($scope, $location, $routeParams, HomeHostList, GenerateList,
|
|||||||
});
|
});
|
||||||
if (host) {
|
if (host) {
|
||||||
HostsEdit({
|
HostsEdit({
|
||||||
scope: $scope,
|
host_scope: $scope,
|
||||||
host_id: host_id,
|
host_id: host_id,
|
||||||
inventory_id: host.inventory,
|
inventory_id: host.inventory,
|
||||||
group_id: null,
|
group_id: null,
|
||||||
|
|||||||
@@ -621,7 +621,12 @@ function($rootScope, $location, $log, $routeParams, Rest, Alert, HostForm, Gener
|
|||||||
catch(err) {
|
catch(err) {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
group_scope.refreshHosts();
|
if (group_scope && group_scope.refreshHosts) {
|
||||||
|
group_scope.refreshHosts();
|
||||||
|
}
|
||||||
|
if (parent_scope.refreshHosts) {
|
||||||
|
parent_scope.refreshHosts();
|
||||||
|
}
|
||||||
scope.$destroy();
|
scope.$destroy();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -22,4 +22,5 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div ng-include="'/static/partials/schedule_dialog.html'"></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>
|
||||||
Reference in New Issue
Block a user