mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 02:31:03 -03:30
Fixed team list org sorting
This commit is contained in:
@@ -28,9 +28,6 @@ export default ['$scope', 'Rest', 'TeamList', 'Prompt',
|
|||||||
$scope.list = list;
|
$scope.list = list;
|
||||||
$scope[`${list.iterator}_dataset`] = Dataset.data;
|
$scope[`${list.iterator}_dataset`] = Dataset.data;
|
||||||
$scope[list.name] = $scope[`${list.iterator}_dataset`].results;
|
$scope[list.name] = $scope[`${list.iterator}_dataset`].results;
|
||||||
_.forEach($scope[list.name], (team) => {
|
|
||||||
team.organization_name = team.summary_fields.organization.name;
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.selected = [];
|
$scope.selected = [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ export default ['i18n', function(i18n) {
|
|||||||
},
|
},
|
||||||
organization: {
|
organization: {
|
||||||
label: i18n._('Organization'),
|
label: i18n._('Organization'),
|
||||||
ngBind: 'team.organization_name',
|
ngBind: 'team.summary_fields.organization.name',
|
||||||
sourceModel: 'organization',
|
sourceModel: 'organization',
|
||||||
sourceField: 'name',
|
sourceField: 'name',
|
||||||
columnClass: 'col-md-3 hidden-sm hidden-xs',
|
columnClass: 'col-md-3 hidden-sm hidden-xs',
|
||||||
|
|||||||
Reference in New Issue
Block a user