mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -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:
parent
70eeca1a38
commit
47232d732f
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user