mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-02 12:51:48 -05:00
add input source prompting and plugin testing
This commit is contained in:
@@ -102,8 +102,9 @@ function SmartSearchController (
|
||||
const rootField = termParts[0].split('.')[0].replace(/^-/, '');
|
||||
const listName = $scope.list.name;
|
||||
const baseRelatedTypePath = `models.${listName}.base.${rootField}.type`;
|
||||
const relatedTypePath = `models.${listName}.related`;
|
||||
|
||||
const isRelatedSearchTermField = (_.includes($scope.models[listName].related, rootField));
|
||||
const isRelatedSearchTermField = (_.includes(_.get($scope, relatedTypePath), rootField));
|
||||
const isBaseModelRelatedSearchTermField = (_.get($scope, baseRelatedTypePath) === 'field');
|
||||
|
||||
return (isRelatedSearchTermField || isBaseModelRelatedSearchTermField);
|
||||
|
||||
Reference in New Issue
Block a user