mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 05:59:28 -02:30
using "val" instead of scope value
This commit is contained in:
committed by
Matthew Jones
parent
2bd5c6b1b1
commit
8ff09ec4f5
@@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user