Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…pp-cms into fix/logic-retry-button
  • Loading branch information
marsellavaleria19 committed Feb 24, 2025
2 parents 33bd690 + f243336 commit ce2533b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/Aduan/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<!-- eslint-disable-next-line vue/valid-v-slot -->
<template #action="{ item }">
<BaseTableAction
:list-menu-pop-over="menuTableActionHandle(item?.status_id)"
:list-menu-pop-over="menuTableActionHandle(item)"
:data-cy="dataCyButtonAction"
@detail="goToPageDetailHandle(item)"
@verify="showPopupConfirmationVerificationComplaintHandle(item)"
Expand Down Expand Up @@ -725,12 +725,13 @@ export default {
return 'text-gray-900'
}
},
menuTableActionHandle(complaintStatus) {
menuTableActionHandle(dataComplaint) {
return this.menuTableAction.filter(
(item) =>
item.complaintType.includes('all') ||
(item.complaintType.includes(this.typeAduanPage.props) &&
item.complaintStatus.includes(complaintStatus))
item.complaintStatus.includes(dataComplaint?.complaint_status_id) &&
!dataComplaint.is_followup)
)
},
getTotalStatistic() {
Expand Down

0 comments on commit ce2533b

Please sign in to comment.