Updated UI to account for object_roles changes

This commit is contained in:
Akita Noek
2016-06-03 12:26:23 -04:00
parent cedecb97e4
commit 6609732edd

View File

@@ -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;