mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 19:35:02 -02: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 parts = url.split('/');
|
||||||
let tab = parts[parts.length - 1];
|
let tab = parts[parts.length - 1];
|
||||||
|
|
||||||
if (tab === 'auth' && !codeInputInitialized) {
|
if (tab === 'auth') {
|
||||||
startCodeMirrors();
|
startCodeMirrors();
|
||||||
codeInputInitialized = true;
|
codeInputInitialized = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -505,9 +505,6 @@ export default [
|
|||||||
else if($scope[key + '_field'].reset === "CUSTOM_LOGO"){
|
else if($scope[key + '_field'].reset === "CUSTOM_LOGO"){
|
||||||
$scope.$broadcast(key+'_reverted');
|
$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')){
|
else if($scope[key + '_field'].hasOwnProperty('codeMirror')){
|
||||||
$scope[key] = '{}';
|
$scope[key] = '{}';
|
||||||
$scope.$broadcast('codeMirror_populated', key);
|
$scope.$broadcast('codeMirror_populated', key);
|
||||||
|
|||||||
Reference in New Issue
Block a user