using "val" instead of scope value

This commit is contained in:
jaredevantabor
2017-03-06 12:50:07 -08:00
committed by Matthew Jones
parent 2bd5c6b1b1
commit 8ff09ec4f5

View File

@@ -169,12 +169,12 @@ function(ConfigurationUtils, i18n, $rootScope) {
scope.imageData = $rootScope.custom_logo; scope.imageData = $rootScope.custom_logo;
}); });
scope.$watch('imagePresent', () => { scope.$watch('imagePresent', (val) => {
if(!scope.imagePresent){ if(val){
filePickerButton.html(browseText); filePickerButton.html(removeText);
} }
else{ else{
filePickerButton.html(removeText); filePickerButton.html(browseText);
} }
}); });