mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -03:30
Updated UI to account for object_roles changes
This commit is contained in:
@@ -30,25 +30,25 @@ export default ['$rootScope', '$scope', 'GetBasePath', 'Rest', '$q', 'Wait', 'Pr
|
|||||||
|
|
||||||
// array for all possible roles for the object
|
// array for all possible roles for the object
|
||||||
scope.roles = Object
|
scope.roles = Object
|
||||||
.keys(scope.object.summary_fields.roles)
|
.keys(scope.object.summary_fields.object_roles)
|
||||||
.map(function(key) {
|
.map(function(key) {
|
||||||
return {
|
return {
|
||||||
value: scope.object.summary_fields
|
value: scope.object.summary_fields
|
||||||
.roles[key].id,
|
.object_roles[key].id,
|
||||||
label: scope.object.summary_fields
|
label: scope.object.summary_fields
|
||||||
.roles[key].name };
|
.object_roles[key].name };
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: get working with api
|
// TODO: get working with api
|
||||||
// array w roles and descriptions for key
|
// array w roles and descriptions for key
|
||||||
scope.roleKey = Object
|
scope.roleKey = Object
|
||||||
.keys(scope.object.summary_fields.roles)
|
.keys(scope.object.summary_fields.object_roles)
|
||||||
.map(function(key) {
|
.map(function(key) {
|
||||||
return {
|
return {
|
||||||
name: scope.object.summary_fields
|
name: scope.object.summary_fields
|
||||||
.roles[key].name,
|
.object_roles[key].name,
|
||||||
description: scope.object.summary_fields
|
description: scope.object.summary_fields
|
||||||
.roles[key].description };
|
.object_roles[key].description };
|
||||||
});
|
});
|
||||||
|
|
||||||
scope.showKeyPane = false;
|
scope.showKeyPane = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user