fix: create new membership
This commit is contained in:
parent
375d122552
commit
a093174c7d
|
@ -111,14 +111,6 @@ export const MenuList = observer((props) => {
|
|||
</Link>
|
||||
</Menu.Item>
|
||||
)}
|
||||
{store.authentication.userData.role !== "Retail" && (
|
||||
<Menu.Item key="retail">
|
||||
<Link to={LINKS.PRODUCT}>
|
||||
<DatabaseOutlined />
|
||||
<span>Product</span>
|
||||
</Link>
|
||||
</Menu.Item>
|
||||
)}
|
||||
<Menu.Item key="payback">
|
||||
<Link to={LINKS.PAYBACK}>
|
||||
<DatabaseOutlined />
|
||||
|
|
|
@ -51,7 +51,7 @@ export const MembershipModal = ({
|
|||
name="form_in_modal"
|
||||
initialValues={initialData}
|
||||
>
|
||||
{initialData.id && !initialData.isChangePassword && (
|
||||
{((initialData.id && !initialData.isChangePassword) || !initialData.id) && (
|
||||
<Form.Item
|
||||
name="username"
|
||||
label="Username"
|
||||
|
@ -60,7 +60,7 @@ export const MembershipModal = ({
|
|||
<Input />
|
||||
</Form.Item>
|
||||
)}
|
||||
{initialData.id && initialData.isChangePassword && (
|
||||
{((initialData.id && initialData.isChangePassword) || !initialData.id) && (
|
||||
<Form.Item
|
||||
name="password"
|
||||
label="Password"
|
||||
|
@ -69,7 +69,7 @@ export const MembershipModal = ({
|
|||
<Input />
|
||||
</Form.Item>
|
||||
)}
|
||||
{initialData.id && !initialData.isChangePassword && (
|
||||
{((initialData.id && !initialData.isChangePassword) || !initialData.id) && (
|
||||
<Form.Item
|
||||
name="roleId"
|
||||
label="Role"
|
||||
|
|
Loading…
Reference in New Issue
Block a user