This commit is contained in:
Possible
2024-07-26 13:18:15 +01:00
parent c9599309ea
commit 6ecc7e3c15
3 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ All this task must be done in 1 day
}, },
} }
</pre> </pre>
- 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 > 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
@@ -669,7 +669,13 @@ const MkdListTableV2 = ({
<button <button
type="button" type="button"
ref={refreshRef} ref={refreshRef}
onClick={() => getData(1, pageSize)} onClick={() => {
if (useExternalData) {
setCurrentTableData(() => externalData);
} else {
getData(1, pageSize);
}
}}
className="hidden" className="hidden"
></button> ></button>
)} )}
+6 -2
View File
@@ -389,7 +389,7 @@ const AdminListReceipts = () => {
column: "receipt_status", column: "receipt_status",
action: "hide", action: "hide",
operator: operations.EQUAL, operator: operations.EQUAL,
ifValue: 0, ifValue: 1,
}, },
}, },
open: { open: {
@@ -408,7 +408,7 @@ const AdminListReceipts = () => {
column: "receipt_status", column: "receipt_status",
action: "hide", action: "hide",
operator: operations.EQUAL, operator: operations.EQUAL,
ifValue: 1, ifValue: 0,
}, },
}, },
add: { add: {
@@ -470,6 +470,10 @@ const AdminListReceipts = () => {
table="receipts" table="receipts"
inputConfirmation={false} inputConfirmation={false}
/> />
{/*
<div className="w-full h-[31.25rem] border-2 border-red-600">
<canvas className="border border-blue-600 h-full w-full" />
</div> */}
</div> </div>
); );
}; };