mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Hide organizations tab when adding team permissions. Filter credentials based on org when adding team permissions.
This commit is contained in:
parent
c5d1ff1791
commit
beeb9b8c01
@ -41,7 +41,7 @@
|
||||
<div class="Form-tab"
|
||||
ng-click="selectTab('workflow_templates')"
|
||||
ng-class="{'is-selected': tab.workflow_templates}"
|
||||
ng-hide="resolve.workflowTemplatesDataset.status === 402"
|
||||
ng-hide="resolve.workflowTemplatesDataset.status === 402"
|
||||
translate>
|
||||
Workflow Templates
|
||||
</div>
|
||||
@ -65,6 +65,7 @@
|
||||
<div class="Form-tab"
|
||||
ng-click="selectTab('organizations')"
|
||||
ng-class="{'is-selected': tab.organizations}"
|
||||
ng-hide="owner.type === 'team'"
|
||||
translate>
|
||||
Organizations
|
||||
</div>
|
||||
|
@ -313,9 +313,14 @@ function($injector, $stateExtender, $log, i18n) {
|
||||
return qs.search(path, $stateParams[`${list.iterator}_search`]);
|
||||
}
|
||||
],
|
||||
credentialsDataset: ['CredentialList', 'QuerySet', '$stateParams', 'GetBasePath',
|
||||
function(list, qs, $stateParams, GetBasePath) {
|
||||
credentialsDataset: ['CredentialList', 'QuerySet', '$stateParams', 'GetBasePath', 'resourceData',
|
||||
function(list, qs, $stateParams, GetBasePath, resourceData) {
|
||||
let path = GetBasePath(list.basePath) || GetBasePath(list.name);
|
||||
|
||||
if(resourceData.data.type === "team") {
|
||||
$stateParams[`${list.iterator}_search`].organization = resourceData.data.organization;
|
||||
}
|
||||
|
||||
return qs.search(path, $stateParams[`${list.iterator}_search`]);
|
||||
}
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user