mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 21:51:26 -03:30
Fix for notification lookup on inv_sources
This commit is contained in:
parent
1fa8a4a4a3
commit
fd61619063
@ -37,6 +37,7 @@ function manageGroupsDirectiveController($filter, $location, $log,
|
||||
Rest.get()
|
||||
.success(function(data) {
|
||||
group = data;
|
||||
$scope.source_id = data.related.inventory_source.split('/')[4];
|
||||
for (var fld in form.fields) {
|
||||
if (data[fld]) {
|
||||
$scope[fld] = data[fld];
|
||||
@ -44,10 +45,8 @@ function manageGroupsDirectiveController($filter, $location, $log,
|
||||
}
|
||||
}
|
||||
if(mode === 'edit') {
|
||||
// schedules_url = data.related.inventory_source + 'schedules/';
|
||||
$scope.variable_url = data.related.variable_data;
|
||||
$scope.source_url = data.related.inventory_source;
|
||||
$scope.source_id = $scope.source_url.split('/')[4];
|
||||
$scope.$emit('LoadSourceData');
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user