mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
fix label dropdown population on edit of JT
This commit is contained in:
parent
9ffb5261cd
commit
f6e1fb2579
@ -429,7 +429,10 @@ export default
|
||||
Rest.setUrl('api/v1/labels');
|
||||
Wait("start");
|
||||
Rest.get()
|
||||
.success(function () {
|
||||
.success(function (data) {
|
||||
$scope.labelOptions = data.results
|
||||
.map((i) => ({label: i.name, value: i.id}));
|
||||
|
||||
var seeMoreResolve = $q.defer();
|
||||
|
||||
var getNext = function(data, arr, resolve) {
|
||||
@ -455,8 +458,6 @@ export default
|
||||
}
|
||||
|
||||
seeMoreResolve.promise.then(function (labels) {
|
||||
$scope.labelOptions = labels
|
||||
.map((i) => ({label: i.name, value: i.id}));
|
||||
$scope.$emit("choicesReady");
|
||||
var opts = labels
|
||||
.map(i => ({id: i.id + "",
|
||||
|
Loading…
Reference in New Issue
Block a user