mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
Change success to then manually
This commit is contained in:
parent
7d767f8f63
commit
b3c2f35358
@ -24,17 +24,17 @@ export default
|
||||
method: 'GET',
|
||||
url: '/api/',
|
||||
})
|
||||
.success(function(response) {
|
||||
if(response.custom_logo) {
|
||||
.then(function({data}) {
|
||||
if({data}.custom_logo) {
|
||||
configSettings.custom_logo = true;
|
||||
$rootScope.custom_logo = response.custom_logo;
|
||||
$rootScope.custom_logo = {data}.custom_logo;
|
||||
} else {
|
||||
configSettings.custom_logo = false;
|
||||
}
|
||||
|
||||
if(response.custom_login_info) {
|
||||
configSettings.custom_login_info = response.custom_login_info;
|
||||
$rootScope.custom_login_info = response.custom_login_info;
|
||||
if({data}.custom_login_info) {
|
||||
configSettings.custom_login_info = {data}.custom_login_info;
|
||||
$rootScope.custom_login_info = {data}.custom_login_info;
|
||||
} else {
|
||||
configSettings.custom_login_info = false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user