mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
fixed error handling of options
This commit is contained in:
parent
967194a3f3
commit
c2d9cf466d
@ -93,18 +93,19 @@ export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', function(R
|
||||
value: i[0],
|
||||
label: i[1]
|
||||
};
|
||||
});
|
||||
|
||||
return option;
|
||||
});
|
||||
return option;
|
||||
});
|
||||
Wait("stop");
|
||||
defer.resolve(joinOptions());
|
||||
})
|
||||
.error(function (data, status) {
|
||||
Wait("stop");
|
||||
defer.reject("options request failed");
|
||||
ProcessErrors(null, data, status, null, {
|
||||
hdr: 'Error!',
|
||||
msg: 'Getting type options failed'});
|
||||
});
|
||||
Wait("stop");
|
||||
defer.resolve(joinOptions());
|
||||
});
|
||||
} else {
|
||||
Wait("stop");
|
||||
defer.resolve(joinOptions());
|
||||
|
Loading…
Reference in New Issue
Block a user