mirror of
https://github.com/ansible/awx.git
synced 2026-03-29 06:45:09 -02:30
added a small adjustment to inventory group modal Schedule tab issue
This commit is contained in:
@@ -938,7 +938,7 @@ function($compile, SchedulerInit, Rest, Wait, SetSchedulesInnerDialogSize, Sched
|
|||||||
data.summary_fields[form.fields[fld].sourceModel][form.fields[fld].sourceField];
|
data.summary_fields[form.fields[fld].sourceModel][form.fields[fld].sourceField];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modal_scope.$emit('groupVariablesLoaded'); // JT-- "groupVariablesLoaded" is where the schedule info is loaded, so I make a call after the sources_scope.source has been loaded
|
|
||||||
sources_scope.sourceChange(); //set defaults that rely on source value
|
sources_scope.sourceChange(); //set defaults that rely on source value
|
||||||
|
|
||||||
if (data.source_regions) {
|
if (data.source_regions) {
|
||||||
@@ -968,6 +968,7 @@ function($compile, SchedulerInit, Rest, Wait, SetSchedulesInnerDialogSize, Sched
|
|||||||
$('#s2id_source_source_regions').select2('data', master.source_regions);
|
$('#s2id_source_source_regions').select2('data', master.source_regions);
|
||||||
}
|
}
|
||||||
sources_scope.group_update_url = data.related.update;
|
sources_scope.group_update_url = data.related.update;
|
||||||
|
modal_scope.$emit('groupVariablesLoaded'); // JT-- "groupVariablesLoaded" is where the schedule info is loaded, so I make a call after the sources_scope.source has been loaded
|
||||||
//Wait('stop');
|
//Wait('stop');
|
||||||
})
|
})
|
||||||
.error(function (data, status) {
|
.error(function (data, status) {
|
||||||
@@ -976,6 +977,8 @@ function($compile, SchedulerInit, Rest, Wait, SetSchedulesInnerDialogSize, Sched
|
|||||||
msg: 'Failed to retrieve inventory source. GET status: ' + status });
|
msg: 'Failed to retrieve inventory source. GET status: ' + status });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
modal_scope.$emit('groupVariablesLoaded'); // JT-- "groupVariablesLoaded" is where the schedule info is loaded, so I make a call after the sources_scope.source has been loaded
|
||||||
});
|
});
|
||||||
|
|
||||||
if (sources_scope.removeScopeSourceTypeOptionsReady) {
|
if (sources_scope.removeScopeSourceTypeOptionsReady) {
|
||||||
|
|||||||
Reference in New Issue
Block a user