On Job Template save: redirect to proper dest

return to job template list if adding/editing a job template from the list; likewise return to hte inventory properties if adding/editing from that page
This commit is contained in:
Jared Tabor
2015-03-18 15:15:48 -04:00
parent 0948846530
commit 206fb6b288
3 changed files with 57 additions and 14 deletions

View File

@@ -99,14 +99,14 @@ export default
related: {
scan_job_templates: {
type: 'collection',
title: 'Scan Jobs',
title: 'Scan Job Templates',
iterator: 'scan_job_template',
index: false,
open: false,
actions: {
add: {
ngClick: "addScanJob(inventory_id)",
ngClick: "addScanJob()",
icon: 'icon-plus',
label: 'Add',
awToolTip: 'Add a scan job template'
@@ -127,14 +127,14 @@ export default
fieldActions: {
edit: {
label: 'Edit',
ngClick: "editScanJob(inventory_id)",
ngClick: "editScanJob()",
icon: 'icon-edit',
awToolTip: 'Edit the scan job template',
'class': 'btn btn-default'
},
"delete": {
label: 'Delete',
ngClick: "deleteScanJob(inventory_id)",
ngClick: "deleteScanJob()",
icon: 'icon-trash',
"class": 'btn-danger',
awToolTip: 'Delete the scan job template'