mirror of
https://github.com/ansible/awx.git
synced 2026-03-03 17:51:06 -03:30
fix of revert all on jobs tab and then nav to auth tab and codemirrors weren't inited
This commit is contained in:
@@ -295,7 +295,7 @@ export default [
|
||||
let parts = url.split('/');
|
||||
let tab = parts[parts.length - 1];
|
||||
|
||||
if (tab === 'auth' && !codeInputInitialized) {
|
||||
if (tab === 'auth') {
|
||||
startCodeMirrors();
|
||||
codeInputInitialized = true;
|
||||
}
|
||||
|
||||
@@ -505,9 +505,6 @@ export default [
|
||||
else if($scope[key + '_field'].reset === "CUSTOM_LOGO"){
|
||||
$scope.$broadcast(key+'_reverted');
|
||||
}
|
||||
else if($scope[key + '_field'].type === "textarea" && _.isArray($scope.configDataResolve[key].default)){
|
||||
$scope[key] = ConfigurationUtils.arrayToList($scope[key], key);
|
||||
}
|
||||
else if($scope[key + '_field'].hasOwnProperty('codeMirror')){
|
||||
$scope[key] = '{}';
|
||||
$scope.$broadcast('codeMirror_populated', key);
|
||||
|
||||
Reference in New Issue
Block a user