mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
fixing inventory scripts AS
This commit is contained in:
parent
fff8564bee
commit
d4134aabe3
@ -49,6 +49,16 @@ export default {
|
||||
function(list, qs, $stateParams, GetBasePath) {
|
||||
let path = GetBasePath(list.basePath) || GetBasePath(list.name);
|
||||
let stateParams = $stateParams[`${list.iterator}_search`];
|
||||
|
||||
if($stateParams.target === "inventory_script"){
|
||||
stateParams.or__object1__in = 'custom_inventory_script';
|
||||
stateParams.or__object2__in = 'custom_inventory_script';
|
||||
if(stateParams.inventory_script){
|
||||
stateParams.custom_inventory_script = stateParams.inventory_script;
|
||||
delete stateParams.inventory_script;
|
||||
}
|
||||
}
|
||||
|
||||
// Sending or__object1__in=null will result in an api error response so lets strip
|
||||
// these out. This should only be null when hitting the All Activity page.
|
||||
if(stateParams.or__object1__in && stateParams.or__object1__in === null) {
|
||||
|
||||
@ -79,10 +79,6 @@ angular.module('notifications', [
|
||||
]
|
||||
}
|
||||
},
|
||||
data: {
|
||||
activityStream: true,
|
||||
activityStreamTarget: 'notification'
|
||||
},
|
||||
ncyBreadcrumb: {
|
||||
parent: 'setup',
|
||||
label: N_('NOTIFICATIONS')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user