public/js/views/user.js in conjur-asset-ui-api-1.1.1 vs public/js/views/user.js in conjur-asset-ui-api-1.2.0

- old
+ new

@@ -1,22 +1,21 @@ /** @jsx React.DOM */ var User = React.createClass({ render: function(){ - var user = this.props.data; - console.log("render User data=", user); + var user = this.props.data.user; return ( <div className="user"> <h2> User {user.login} </h2> <dl> <dt> Owner </dt> <dd><RoleLink id={user.ownerid}/></dd> </dl> - <Permissions role={user.roleid}/> + <OwnedResources owned={this.props.data.owned} /> + <Permissions owned={this.props.data.owned} role={user.roleid}/> <div className="audit auditGroup"> <AuditBox roles={[user.roleid]} resources={[user.resource_identifier]}/> </div> </div> - ); } });