From 8ff09ec4f51e8ca3493eb51a438ce4c4ba169c5b Mon Sep 17 00:00:00 2001 From: jaredevantabor Date: Mon, 6 Mar 2017 12:50:07 -0800 Subject: [PATCH] using "val" instead of scope value --- awx/ui/client/src/shared/directives.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/awx/ui/client/src/shared/directives.js b/awx/ui/client/src/shared/directives.js index 51b767bd83..a39205ad81 100644 --- a/awx/ui/client/src/shared/directives.js +++ b/awx/ui/client/src/shared/directives.js @@ -169,12 +169,12 @@ function(ConfigurationUtils, i18n, $rootScope) { scope.imageData = $rootScope.custom_logo; }); - scope.$watch('imagePresent', () => { - if(!scope.imagePresent){ - filePickerButton.html(browseText); + scope.$watch('imagePresent', (val) => { + if(val){ + filePickerButton.html(removeText); } else{ - filePickerButton.html(removeText); + filePickerButton.html(browseText); } });