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.$watch('imagePresent', () => {
if(!scope.imagePresent){
filePickerButton.html(browseText);
scope.$watch('imagePresent', (val) => {
if(val){
filePickerButton.html(removeText);
}
else{
filePickerButton.html(removeText);
filePickerButton.html(browseText);
}
});