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