mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-09 09:31:49 -05:00
Make extra vars read-only for users without edit role on some forms. Fixes console error thrown in launch modal if survey tab missing.
This commit is contained in:
@@ -147,11 +147,13 @@ export default ['Rest', 'Wait',
|
||||
if (!$scope.headers) {
|
||||
$scope.headers = "{\n}";
|
||||
}
|
||||
|
||||
ParseTypeChange({
|
||||
scope: $scope,
|
||||
parse_variable: 'parse_type',
|
||||
variable: 'headers',
|
||||
field_id: 'notification_template_headers',
|
||||
readOnly: !$scope.notification_template.summary_fields.user_capabilities.edit
|
||||
});
|
||||
Wait('stop');
|
||||
})
|
||||
@@ -221,6 +223,7 @@ export default ['Rest', 'Wait',
|
||||
parse_variable: 'parse_type',
|
||||
variable: 'headers',
|
||||
field_id: 'notification_template_headers',
|
||||
readOnly: !$scope.notification_template.summary_fields.user_capabilities.edit
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user