mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 15:38:06 -03:30
inventory source id parsing on edit
This commit is contained in:
parent
3d1efea862
commit
4661437128
@ -37,7 +37,6 @@ 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];
|
||||
@ -47,6 +46,7 @@ function manageGroupsDirectiveController($filter, $location, $log,
|
||||
if(mode === 'edit') {
|
||||
$scope.variable_url = data.related.variable_data;
|
||||
$scope.source_url = data.related.inventory_source;
|
||||
$scope.source_id = data.related.inventory_source.split('/')[4];
|
||||
$scope.$emit('LoadSourceData');
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user