mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 01:38:50 -03:30
changing text of BROWSE button when image is already uploaded
This commit is contained in:
committed by
Matthew Jones
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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user