mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
show permissions in table
This commit is contained in:
@@ -10,7 +10,8 @@ import {
|
||||
} from "../modules/permissions";
|
||||
import Loading from "../../components/Loading";
|
||||
import ErrorPage from "../../components/ErrorPage";
|
||||
import type {PermissionCollection} from "../types/Permissions";
|
||||
import type { PermissionCollection } from "../types/Permissions";
|
||||
import PermissionsTable from "../components/table/PermissionsTable";
|
||||
|
||||
type Props = {
|
||||
namespace: string,
|
||||
@@ -51,7 +52,10 @@ class Permissions extends React.Component<Props> {
|
||||
return <Loading />;
|
||||
}
|
||||
|
||||
return <div>Permissions will be shown here!</div>;
|
||||
if (permissions.length > 0)
|
||||
return <PermissionsTable permissions={permissions} />;
|
||||
|
||||
return <div />;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user