mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 22:19:28 -02:30
Fixing add notificaiton template button for mgmt jobs
This commit is contained in:
@@ -19,11 +19,24 @@ export default
|
|||||||
var scope = $rootScope.$new(),
|
var scope = $rootScope.$new(),
|
||||||
url = GetBasePath('notification_templates'),
|
url = GetBasePath('notification_templates'),
|
||||||
defaultUrl = GetBasePath('system_job_templates'),
|
defaultUrl = GetBasePath('system_job_templates'),
|
||||||
list = NotificationsList,
|
list,
|
||||||
view = GenerateList,
|
view = GenerateList,
|
||||||
id = $stateParams.management_id;
|
id = $stateParams.management_id;
|
||||||
|
|
||||||
|
list = _.cloneDeep(NotificationsList);
|
||||||
|
delete list.actions.add;
|
||||||
list.listTitle = `${management_job.name} <div class="List-titleLockup"></div> Notifications`;
|
list.listTitle = `${management_job.name} <div class="List-titleLockup"></div> Notifications`;
|
||||||
|
list.searchSize = "col-lg-12 col-md-12 col-sm-12 col-xs-12";
|
||||||
|
list.searchRowActions = {
|
||||||
|
add: {
|
||||||
|
label: 'Add Notification',
|
||||||
|
mode: 'all', // One of: edit, select, all
|
||||||
|
ngClick: 'addNotificationTemplate()',
|
||||||
|
awToolTip: 'Create a new notification template',
|
||||||
|
actionClass: 'btn List-buttonSubmit',
|
||||||
|
buttonContent: '+ ADD NOTIFICATION TEMPLATE'
|
||||||
|
}
|
||||||
|
};
|
||||||
view.inject( list, {
|
view.inject( list, {
|
||||||
mode: 'edit',
|
mode: 'edit',
|
||||||
cancelButton: true,
|
cancelButton: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user