Bug Fixing
This commit is contained in:
@@ -284,8 +284,8 @@ export const Profile = observer(() => {
|
||||
try {
|
||||
modalLoader.setLoading(true);
|
||||
const response = await store.membership.changePassword(id, data);
|
||||
console.log(id,"id yang masuk")
|
||||
console.log(data,"data yang masuk")
|
||||
console.log(id, "id yang masuk");
|
||||
console.log(data, "data yang masuk");
|
||||
message.success(response?.body?.message || "Berhasil Ganti Password");
|
||||
} catch (e) {
|
||||
console.log(e, "apa errornya");
|
||||
@@ -301,7 +301,8 @@ export const Profile = observer(() => {
|
||||
<BreadcumbComponent
|
||||
data={
|
||||
store.authentication.userData.role === "Admin" ||
|
||||
store.authentication.userData.role === "Admin Partner"
|
||||
store.authentication.userData.role === "Admin Partner" ||
|
||||
store.authentication.userData.role === "Customer Service"
|
||||
? routeData
|
||||
: dataRoute
|
||||
}
|
||||
@@ -430,16 +431,11 @@ export const Profile = observer(() => {
|
||||
{store.authentication.userData.role === "Retail" && (
|
||||
<Button
|
||||
onClick={() => {
|
||||
// setInitialData({
|
||||
// id: store.membership.dataDetail.id,
|
||||
// name: store.membership.dataDetail.userDetail.name,
|
||||
// username: store.membership.dataDetail.username,
|
||||
// phone_number:
|
||||
// store.membership.dataDetail.userDetail.phone_number,
|
||||
// roleId: store.membership.dataDetail.roles.id,
|
||||
// isChangePassword: true,
|
||||
console.log(store.authentication.profileData?.id,"id nya")
|
||||
console.log(store.authentication.profileData?.userDetail.id,"id member")
|
||||
console.log(store.authentication.profileData?.id, "id nya");
|
||||
console.log(
|
||||
store.authentication.profileData?.userDetail.id,
|
||||
"id member"
|
||||
);
|
||||
setVisible(true);
|
||||
}}
|
||||
>
|
||||
@@ -455,7 +451,7 @@ export const Profile = observer(() => {
|
||||
style={{ marginBottom: "1rem", marginLeft: 5 }}
|
||||
onClick={() => {
|
||||
store.transaction.visibleModalFilterTransaction = true;
|
||||
store.transaction.page=0;
|
||||
store.transaction.page = 0;
|
||||
setAction(true);
|
||||
}}
|
||||
>
|
||||
@@ -571,7 +567,7 @@ export const Profile = observer(() => {
|
||||
style={{ marginBottom: "1rem", marginLeft: 5 }}
|
||||
onClick={() => {
|
||||
store.transaction.visibleModalFilterTransaction = true;
|
||||
store.transaction.page=0
|
||||
store.transaction.page = 0;
|
||||
}}
|
||||
>
|
||||
<FilterOutlined />
|
||||
@@ -593,8 +589,7 @@ export const Profile = observer(() => {
|
||||
}}
|
||||
onChange={async (page) => {
|
||||
let pageNumber = page.current;
|
||||
store.transaction.pageSize =
|
||||
page.pageSize;
|
||||
store.transaction.pageSize = page.pageSize;
|
||||
store.transaction.page = pageNumber - 1;
|
||||
modalLoader.setLoading(true);
|
||||
await store.transaction.getDataHistoryTransaction();
|
||||
@@ -612,8 +607,7 @@ export const Profile = observer(() => {
|
||||
onChange: async (page, pageSize) => {
|
||||
console.log(page, "Page");
|
||||
console.log(pageSize, "Page size");
|
||||
store.transaction.page =
|
||||
pageSize;
|
||||
store.transaction.page = pageSize;
|
||||
store.transaction.page = page - 1;
|
||||
modalLoader.setLoading(true);
|
||||
await store.transaction.getDataHistoryTransaction();
|
||||
@@ -780,7 +774,7 @@ export const Profile = observer(() => {
|
||||
<Form
|
||||
form={form}
|
||||
layout="vertical"
|
||||
initialValues={{ id : store.authentication.profileData?.id }}
|
||||
initialValues={{ id: store.authentication.profileData?.id }}
|
||||
>
|
||||
<Form.Item
|
||||
name="password"
|
||||
|
||||
Reference in New Issue
Block a user