Merge branch 'develop' into 'devops-staging'

Bug Fixing PPOB

See merge request empatnusabangsa/ppob/ppob-frontend!83
This commit is contained in:
ajat sudrajat 2022-01-24 11:01:18 +00:00
commit 51cbce1a98
2 changed files with 45 additions and 12 deletions

View File

@ -165,6 +165,26 @@ export const DesktopLayout = observer(() => {
</Menu.Item> </Menu.Item>
</SubMenu> </SubMenu>
)} )}
{store.authentication.userData.role === "Supervisor" && (
<SubMenu
key="keanggotaan"
icon={<UsergroupAddOutlined />}
title="Keanggotaan"
>
<Menu.Item key="membership">
<Link to={LINKS.MEMBERSHIP}>
<UnorderedListOutlined />
<span>List Anggota</span>
</Link>
</Menu.Item>
<Menu.Item key="konfirmasi">
<Link to={LINKS.KONFIRMASI}>
<FormOutlined />
<span>Konfirmasi Retail</span>
</Link>
</Menu.Item>
</SubMenu>
)}
{store.authentication.userData.role === "Sales" && ( {store.authentication.userData.role === "Sales" && (
<Menu.Item key="membership"> <Menu.Item key="membership">
<Link to={LINKS.MEMBERSHIP}> <Link to={LINKS.MEMBERSHIP}>
@ -173,14 +193,14 @@ export const DesktopLayout = observer(() => {
</Link> </Link>
</Menu.Item> </Menu.Item>
)} )}
{store.authentication.userData.role === "Supervisor" && ( {/* {store.authentication.userData.role === "Supervisor" && (
<Menu.Item key="membership"> <Menu.Item key="membership">
<Link to={LINKS.MEMBERSHIP}> <Link to={LINKS.MEMBERSHIP}>
<IdcardOutlined /> <IdcardOutlined />
<span>Keanggotaan</span> <span>Keanggotaan</span>
</Link> </Link>
</Menu.Item> </Menu.Item>
)} )} */}
{store.authentication.userData.role === "Admin" && ( {store.authentication.userData.role === "Admin" && (
<SubMenu <SubMenu
key="config" key="config"

View File

@ -123,7 +123,7 @@ export const Konfirmasi = observer(() => {
width: "10%", width: "10%",
render: (text, record) => render: (text, record) =>
record.is_active === false ? ( record.is_active === false ? (
<Space size="middle"> <Space size="small">
<Button <Button
onClick={async () => { onClick={async () => {
Modal.confirm({ Modal.confirm({
@ -400,14 +400,14 @@ export const Konfirmasi = observer(() => {
> >
<List.Item.Meta <List.Item.Meta
className={[""].join(" ")} className={[""].join(" ")}
title={item.userData_name} // title={item.username}
description={ description={
<div style={{}}> <div style={{}}>
<p> <p>
<small>Username: {item.username}</small> <b>Username: {item.username}</b>
<br /> <br />
{item.is_active === false ? ( {item.is_active === false ? (
<Space size="middle"> <Space size="small">
<Button <Button
onClick={async () => { onClick={async () => {
Modal.confirm({ Modal.confirm({
@ -473,7 +473,13 @@ export const Konfirmasi = observer(() => {
</Tag> </Tag>
)} )}
<Button <Button
style={{ marginRight: 10, marginTop: 7 }} style={
item.is_active === true
? {
marginTop: 5,
}
: { marginLeft: 10, marginTop: 5 }
}
onClick={async () => { onClick={async () => {
// await store.transaction.getDataHistoryTopUp(record.id); // await store.transaction.getDataHistoryTopUp(record.id);
// await store.transaction.getDetailHistoryTransaction(record.id); // await store.transaction.getDetailHistoryTransaction(record.id);
@ -488,6 +494,13 @@ export const Konfirmasi = observer(() => {
Foto Identitas Foto Identitas
</Button> </Button>
<Button <Button
style={
item.is_active === true
? {
marginLeft:10,
}
: {marginTop: 10 }
}
onClick={async () => { onClick={async () => {
setToko(item); setToko(item);
setVisibleModalToko(true); setVisibleModalToko(true);