diff --git a/README.md b/README.md index 0207d8e..6e5a921 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ All this task must be done in 1 day }, } - - complete the open and close action feature, update the status to open and close to see the above binding work, also not that close action is meant to show if status is open, and open is only meant to show if status is closed - `lines -> 326,330,444,464` + - complete the open and close action feature, update the status to open and close to see the above binding work, also NOTE that close action is meant to show if status is open, and open is only meant to show if status is closed - `lines -> 326,330,444,464` > the edit action binds via the bind property to a column "receipt_status", if the value of receipt_status is 1 then the edit should be hidden, i.e not shown diff --git a/src/components/MkdListTable/MkdListTableV2.jsx b/src/components/MkdListTable/MkdListTableV2.jsx index 1553720..7ceb1bb 100644 --- a/src/components/MkdListTable/MkdListTableV2.jsx +++ b/src/components/MkdListTable/MkdListTableV2.jsx @@ -669,7 +669,13 @@ const MkdListTableV2 = ({ )} diff --git a/src/pages/AdminListReceipts.jsx b/src/pages/AdminListReceipts.jsx index 00aa056..85d332b 100644 --- a/src/pages/AdminListReceipts.jsx +++ b/src/pages/AdminListReceipts.jsx @@ -389,7 +389,7 @@ const AdminListReceipts = () => { column: "receipt_status", action: "hide", operator: operations.EQUAL, - ifValue: 0, + ifValue: 1, }, }, open: { @@ -408,7 +408,7 @@ const AdminListReceipts = () => { column: "receipt_status", action: "hide", operator: operations.EQUAL, - ifValue: 1, + ifValue: 0, }, }, add: { @@ -470,6 +470,10 @@ const AdminListReceipts = () => { table="receipts" inputConfirmation={false} /> + {/* +