Merge pull request 'Added proper success messages upon creation and update of building, floor, and work area for improved user feedback.' (#87) from Ashtuosh_Bug#191_Incorrect_Success_Message into Issue_May_2W
Reviewed-on: #87
This commit is contained in:
commit
f591f2f30b
@ -88,7 +88,7 @@ const BuildingModel = ({
|
|||||||
name: "",
|
name: "",
|
||||||
description: "",
|
description: "",
|
||||||
});
|
});
|
||||||
if (data.Id !== "0") {
|
if (data.Id !== null) {
|
||||||
showToast("Building updated successfully.", "success");
|
showToast("Building updated successfully.", "success");
|
||||||
} else {
|
} else {
|
||||||
showToast("Building created successfully.", "success");
|
showToast("Building created successfully.", "success");
|
||||||
|
|||||||
@ -104,7 +104,7 @@ const FloorModel = ({
|
|||||||
reset({
|
reset({
|
||||||
floorName: "",
|
floorName: "",
|
||||||
});
|
});
|
||||||
if (data.id !== "0") {
|
if (data.id !== null) {
|
||||||
showToast("Floor updated successfully.", "success");
|
showToast("Floor updated successfully.", "success");
|
||||||
} else {
|
} else {
|
||||||
showToast("Floor created successfully.", "success");
|
showToast("Floor created successfully.", "success");
|
||||||
|
|||||||
@ -115,7 +115,7 @@ const WorkAreaModel = ({
|
|||||||
id: "0",
|
id: "0",
|
||||||
areaName: "",
|
areaName: "",
|
||||||
});
|
});
|
||||||
if (data.id !== "0") {
|
if (WorkArea.id !== null) {
|
||||||
showToast("WorkArea updated successfully.", "success");
|
showToast("WorkArea updated successfully.", "success");
|
||||||
} else {
|
} else {
|
||||||
showToast("WorkArea created successfully.", "success");
|
showToast("WorkArea created successfully.", "success");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user