changing text of BROWSE button when image is already uploaded

This commit is contained in:
jaredevantabor 2017-03-06 11:46:27 -08:00 committed by Matthew Jones
parent ec52e18be8
commit 4b888039d4

View File

@ -169,6 +169,15 @@ function(ConfigurationUtils, i18n, $rootScope) {
scope.imageData = $rootScope.custom_logo;
});
scope.$watch('imagePresent', () => {
if(!scope.imagePresent){
filePickerButton.html(browseText);
}
else{
filePickerButton.html(removeText);
}
});
scope.$on(fieldKey+'_reverted', function(e) {
scope.update(e, true);
});