From b3c2f353586aed346a0a3a3a0315ddb75e6c37b2 Mon Sep 17 00:00:00 2001 From: Ben Thomasson Date: Wed, 4 Oct 2017 13:49:03 -0400 Subject: [PATCH] Change success to then manually --- .../src/shared/load-config/load-config.factory.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/awx/ui/client/src/shared/load-config/load-config.factory.js b/awx/ui/client/src/shared/load-config/load-config.factory.js index 4e6dad6a52..2c89ff97a8 100644 --- a/awx/ui/client/src/shared/load-config/load-config.factory.js +++ b/awx/ui/client/src/shared/load-config/load-config.factory.js @@ -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; }