️ This Gitlab will be shut down at 2021-12-31 23:59:59.
Students and staff can migrate to gitlab.utwente.nl.
SNT members can migrate to gitlab.snt.utwente.nl.
Contact bestuur@snt.utwente.nl for more information.

Migrate your projects today!
Export your project using the webinterface or use a script.

Commit a477c4ba authored by TJHeeringa's avatar TJHeeringa

Allowed for deletion of group_memberships

parent 0ae9c37f
......@@ -162,7 +162,7 @@ const GroupMemberManagementGroupMemberList = ({ memberships, board_group, update
});
};
const onDelete = (deletedRow) => {
let membership = memberships.find(membership=>membership["slug"] === deletedRow[0]);
let membership = memberships.find(membership=>membership["slug"] === deletedRow);
API.callv4({
url: membership.url,
method: "DELETE",
......
......@@ -8,8 +8,8 @@ import PropTypes from "prop-types";
import React from "react";
import {loremIpsum} from "react-lorem-ipsum";
import {BackButton} from "../../../Components/BackButton";
import Info from "../../../Components/Info/Info";
import Logo from "../../../Components/Logo";
import Block from "../../../Components/PageLayout/Content/Block";
import PageContent from "../../../Components/PageLayout/Content/Content";
......@@ -29,6 +29,7 @@ const Detail = (props) => {
return (
<PageContent title={full_name}>
<BackButton/>
<Container>
<Block>
<Typography variant={"h5"}>{ short_name || full_name }</Typography>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment