mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-07 16:41:48 -05:00
fix disabled add forms
This commit is contained in:
@@ -26,6 +26,13 @@ export default
|
||||
url = GetBasePath('notification_templates');
|
||||
|
||||
$scope.notification_template = notification_template;
|
||||
|
||||
$scope.$watch('notification_template.summary_fields.user_capabilities.edit', function(val) {
|
||||
if (val === false) {
|
||||
$scope.canAdd = false;
|
||||
}
|
||||
});
|
||||
|
||||
generator.inject(form, {
|
||||
mode: 'edit' ,
|
||||
scope:$scope,
|
||||
|
||||
Reference in New Issue
Block a user