mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
add modify functionality, state is not updated correctly right now
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
import Loading from "../../components/Loading";
|
||||
import ErrorPage from "../../components/ErrorPage";
|
||||
import type { PermissionCollection } from "../types/Permissions";
|
||||
import PermissionsTable from "../components/table/PermissionsTable";
|
||||
import PermissionsTable from "./PermissionsTable";
|
||||
|
||||
type Props = {
|
||||
namespace: string,
|
||||
@@ -36,7 +36,7 @@ class Permissions extends React.Component<Props> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { loading, error, permissions, t } = this.props;
|
||||
const { loading, error, permissions, t, namespace, name } = this.props;
|
||||
if (error) {
|
||||
return (
|
||||
<ErrorPage
|
||||
@@ -52,7 +52,7 @@ class Permissions extends React.Component<Props> {
|
||||
}
|
||||
|
||||
if (permissions.length > 0)
|
||||
return <PermissionsTable permissions={permissions} />;
|
||||
return <PermissionsTable permissions={permissions} namespace={namespace} name={name} />;
|
||||
|
||||
return <div />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user