render() {
let projects = this.props.projects.map(p => {
- return <Project key={p.uuid} project={p} refresh={this.props.refresh}/>
+ return <Project key={p.id} project={p} refresh={this.props.refresh}/>
});
return (
<table id="projects" className="data zebra">
e.preventDefault();
new GroupsView({
permission: permission,
- project: this.props.project.uuid,
+ project: this.props.project.id,
projectName: this.props.project.name,
refresh: this.props.refresh
}).render();
e.preventDefault();
new UsersView({
permission: permission,
- project: this.props.project.uuid,
+ project: this.props.project.id,
projectName: this.props.project.name,
refresh: this.props.refresh
}).render();
{
"projects": [
{
- "uuid": "10c394cc-c37c-4cf0-97b9-360165c47270",
+ "id": "10c394cc-c37c-4cf0-97b9-360165c47270",
"key": "my-project",
"name": "My Project",
"permissions": [
]
},
{
- "uuid": "5d2408c9-b5c6-4426-8ee8-05be930a5f62",
+ "id": "5d2408c9-b5c6-4426-8ee8-05be930a5f62",
"key": "another-project",
"name": "Another Project",
"permissions": [