mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
removing vars from schedules for project syncs and inv syncs
This commit is contained in:
@@ -134,24 +134,10 @@ export default ['$filter', '$state', '$stateParams', 'AddSchedule', 'Wait',
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if ($state.current.name === 'projectSchedules.add'){
|
else if ($state.current.name === 'projectSchedules.add'){
|
||||||
$scope.extraVars = '---';
|
$scope.noVars = true;
|
||||||
$scope.parseType = 'yaml';
|
|
||||||
ParseTypeChange({
|
|
||||||
scope: $scope,
|
|
||||||
variable: 'extraVars',
|
|
||||||
parse_variable: 'parseType',
|
|
||||||
field_id: 'SchedulerForm-extraVars'
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
else if ($state.current.name === 'inventoryManage.editGroup.schedules.add'){
|
else if ($state.current.name === 'inventories.edit.inventory_sources.edit.schedules.add'){
|
||||||
$scope.extraVars = '---';
|
$scope.noVars = true;
|
||||||
$scope.parseType = 'yaml';
|
|
||||||
ParseTypeChange({
|
|
||||||
scope: $scope,
|
|
||||||
variable: 'extraVars',
|
|
||||||
parse_variable: 'parseType',
|
|
||||||
field_id: 'SchedulerForm-extraVars'
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
AddSchedule({
|
AddSchedule({
|
||||||
scope: $scope,
|
scope: $scope,
|
||||||
|
|||||||
@@ -93,15 +93,24 @@ function($filter, $state, $stateParams, EditSchedule, Wait, $scope, $rootScope,
|
|||||||
// extra_data field is not manifested in the UI when scheduling a Management Job
|
// extra_data field is not manifested in the UI when scheduling a Management Job
|
||||||
if ($state.current.name !== 'managementJobsList.schedule.add' && $state.current.name !== 'managementJobsList.schedule.edit'){
|
if ($state.current.name !== 'managementJobsList.schedule.add' && $state.current.name !== 'managementJobsList.schedule.edit'){
|
||||||
$scope.$on('ScheduleFound', function(){
|
$scope.$on('ScheduleFound', function(){
|
||||||
let readOnly = !$scope.schedule_obj.summary_fields.user_capabilities
|
if ($state.current.name === 'projectSchedules.edit'){
|
||||||
.edit;
|
$scope.noVars = true;
|
||||||
ParseTypeChange({
|
}
|
||||||
scope: $scope,
|
else if ($state.current.name === 'inventories.edit.inventory_sources.edit.schedules.edit'){
|
||||||
variable: 'extraVars',
|
$scope.noVars = true;
|
||||||
parse_variable: 'parseType',
|
}
|
||||||
field_id: 'SchedulerForm-extraVars',
|
else {
|
||||||
readOnly: readOnly
|
let readOnly = !$scope.schedule_obj.summary_fields.user_capabilities
|
||||||
});
|
.edit;
|
||||||
|
ParseTypeChange({
|
||||||
|
scope: $scope,
|
||||||
|
variable: 'extraVars',
|
||||||
|
parse_variable: 'parseType',
|
||||||
|
field_id: 'SchedulerForm-extraVars',
|
||||||
|
readOnly: readOnly
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -636,7 +636,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group Form-formGroup Form-textAreaLabel Form-formGroup--fullWidth">
|
<div class="form-group Form-formGroup Form-textAreaLabel Form-formGroup--fullWidth" ng-hide="noVars">
|
||||||
<label for="Scheduler-extraVars">
|
<label for="Scheduler-extraVars">
|
||||||
<span class="Form-inputLabel">
|
<span class="Form-inputLabel">
|
||||||
Extra Variables
|
Extra Variables
|
||||||
|
|||||||
Reference in New Issue
Block a user