mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
changing text of BROWSE button when image is already uploaded
This commit is contained in:
parent
ec52e18be8
commit
4b888039d4
@ -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);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user