fix disabled add forms

This commit is contained in:
John Mitchell
2016-09-16 10:39:38 -04:00
parent 766dac9663
commit b0731181ff
23 changed files with 256 additions and 181 deletions

View File

@@ -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,