add handling of create link and createPermission handling

This commit is contained in:
Maren Süwer
2018-08-28 16:00:48 +02:00
parent de912f39e6
commit cc7474d4f4
3 changed files with 202 additions and 11 deletions

View File

@@ -70,7 +70,7 @@ class SinglePermission extends React.Component<Props, State> {
render() {
const { permission } = this.state;
const { t, loading, error } = this.props;
const types = ["READ", "OWNER", "GROUP"];
const types = ["READ", "OWNER", "WRITE"];
const deleteButton = this.props.permission._links.delete ? (
<DeleteButton label={t("edit-permission.delete-button")} />
) : null;
@@ -99,7 +99,10 @@ class SinglePermission extends React.Component<Props, State> {
<Checkbox checked={permission ? permission.groupPermission : false} />
</td>
{typeSelector}
<td>{deleteButton}</td> {errorNotification}
<td>
{deleteButton}
{errorNotification}
</td>
</tr>
);
}