corrections updated
This commit is contained in:
parent
75cf39efc2
commit
78d753c65a
@ -458,8 +458,8 @@ const DineInInner = () => {
|
|||||||
|
|
||||||
const handleDelete = async () => {
|
const handleDelete = async () => {
|
||||||
try {
|
try {
|
||||||
await client.delete(`/Dine360 Table/${deleteConfirm.id}`);
|
await client.put(`/Dine360 Table/${deleteConfirm.id}`);
|
||||||
setDeleteConfirm({ show: false, id: null });
|
setDeleteConfirm({ show: false, id: null, isDeleted: null });
|
||||||
getTableData(selectedRoom);
|
getTableData(selectedRoom);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Delete error:", error);
|
console.error("Delete error:", error);
|
||||||
@ -578,7 +578,7 @@ const DineInInner = () => {
|
|||||||
getTableData(room.name);
|
getTableData(room.name);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className="card-body px-3 py-1 d-flex align-items-center ">
|
<div className="card-body px-3 py-1 d-flex gap-2 align-items-center">
|
||||||
{
|
{
|
||||||
room?.isdeleted == 1 && (<Icon icon="mdi:block-helper" style={{color:"red"}}/>)
|
room?.isdeleted == 1 && (<Icon icon="mdi:block-helper" style={{color:"red"}}/>)
|
||||||
}
|
}
|
||||||
@ -1176,7 +1176,7 @@ const DineInInner = () => {
|
|||||||
></button>
|
></button>
|
||||||
</div>
|
</div>
|
||||||
<p className="m-0">
|
<p className="m-0">
|
||||||
{floorDeleteConfirm?.isDeleted === 0
|
{deleteConfirm?.isDeleted === 0
|
||||||
? "Are you sure you want to set this table as Delete?"
|
? "Are you sure you want to set this table as Delete?"
|
||||||
: "Are you sure you want to set this table as Restore?"}
|
: "Are you sure you want to set this table as Restore?"}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user