mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Merge pull request #170 from mabashian/sanitize-parent-object
Sanitize notification/schedule list titles
This commit is contained in:
commit
b2dbc5666f
@ -16,9 +16,9 @@ export default {
|
||||
views: {
|
||||
'@managementJobsList': {
|
||||
controller: 'managementJobsNotificationsController',
|
||||
templateProvider: function(NotificationsList, generateList, ParentObject) {
|
||||
templateProvider: function(NotificationsList, generateList, ParentObject, $filter) {
|
||||
// include name of parent resource in listTitle
|
||||
NotificationsList.listTitle = `${ParentObject.name}<div class='List-titleLockup'></div>` + N_('Notifications');
|
||||
NotificationsList.listTitle = `${$filter('sanitize')(ParentObject.name)}<div class='List-titleLockup'></div>` + N_('Notifications');
|
||||
let html = generateList.build({
|
||||
list: NotificationsList,
|
||||
mode: 'edit'
|
||||
|
||||
@ -27,9 +27,9 @@ angular.module('managementJobScheduler', [])
|
||||
},
|
||||
views: {
|
||||
'@managementJobsList': {
|
||||
templateProvider: function(ScheduleList, generateList, ParentObject) {
|
||||
templateProvider: function(ScheduleList, generateList, ParentObject, $filter) {
|
||||
// include name of parent resource in listTitle
|
||||
ScheduleList.listTitle = `${ParentObject.name}<div class='List-titleLockup'></div>` + N_('SCHEDULES');
|
||||
ScheduleList.listTitle = `${$filter('sanitize')(ParentObject.name)}<div class='List-titleLockup'></div>` + N_('SCHEDULES');
|
||||
let html = generateList.build({
|
||||
list: ScheduleList,
|
||||
mode: 'edit'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user