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); } });