mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 22:48:02 -03:30
add NotificationTemplate model
This commit is contained in:
parent
e0f3e4feb7
commit
29f1d695ae
21
awx/ui/client/lib/models/NotificationTemplate.js
Normal file
21
awx/ui/client/lib/models/NotificationTemplate.js
Normal file
@ -0,0 +1,21 @@
|
||||
let Base;
|
||||
|
||||
function NotificationTemplateModel (method, resource, config) {
|
||||
Base.call(this, 'notification_templates');
|
||||
|
||||
this.Constructor = NotificationTemplateModel;
|
||||
|
||||
return this.create(method, resource, config);
|
||||
}
|
||||
|
||||
function NotificationTemplateModelLoader (BaseModel) {
|
||||
Base = BaseModel;
|
||||
|
||||
return NotificationTemplateModel;
|
||||
}
|
||||
|
||||
NotificationTemplateModelLoader.$inject = [
|
||||
'BaseModel'
|
||||
];
|
||||
|
||||
export default NotificationTemplateModelLoader;
|
||||
@ -13,6 +13,7 @@ import Job from '~models/Job';
|
||||
import JobTemplate from '~models/JobTemplate';
|
||||
import Me from '~models/Me';
|
||||
import ModelsStrings from '~models/models.strings';
|
||||
import NotificationTemplate from '~models/NotificationTemplate';
|
||||
import Organization from '~models/Organization';
|
||||
import Project from '~models/Project';
|
||||
import UnifiedJobTemplate from '~models/UnifiedJobTemplate';
|
||||
@ -39,6 +40,7 @@ angular
|
||||
.service('JobTemplateModel', JobTemplate)
|
||||
.service('MeModel', Me)
|
||||
.service('ModelsStrings', ModelsStrings)
|
||||
.service('NotificationTemplate', NotificationTemplate)
|
||||
.service('OrganizationModel', Organization)
|
||||
.service('ProjectModel', Project)
|
||||
.service('UnifiedJobTemplateModel', UnifiedJobTemplate)
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
export default ['$scope', 'Wait', 'NotificationTemplatesList',
|
||||
'GetBasePath', 'Rest', 'ProcessErrors', 'Prompt', '$state',
|
||||
'ngToast', '$filter', 'Dataset', 'rbacUiControlService',
|
||||
'i18n',
|
||||
'i18n', 'NotificationTemplateModel',
|
||||
function(
|
||||
$scope, Wait, NotificationTemplatesList,
|
||||
GetBasePath, Rest, ProcessErrors, Prompt, $state,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user