mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
add selector for createPermission and show create dummy in uiC
This commit is contained in:
33
scm-ui/src/permissions/components/CreatePermissionForm.js
Normal file
33
scm-ui/src/permissions/components/CreatePermissionForm.js
Normal file
@@ -0,0 +1,33 @@
|
||||
// @flow
|
||||
import React from "react";
|
||||
import type { Permission } from "../types/Permissions";
|
||||
import { translate } from "react-i18next";
|
||||
|
||||
type Props = {
|
||||
t: string => string
|
||||
};
|
||||
|
||||
type State = {
|
||||
permission: Permission
|
||||
};
|
||||
|
||||
class CreatePermissionForm extends React.Component<Props, State> {
|
||||
constructor(props: Props) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
permission: {
|
||||
name: "",
|
||||
type: "READ",
|
||||
groupPermission: false,
|
||||
_links: {}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
return "Show Permissions here!";
|
||||
}
|
||||
}
|
||||
|
||||
export default translate("permissions")(CreatePermissionForm);
|
||||
Reference in New Issue
Block a user