refactor(servers): changed activeity around and trying to make use of it
Some checks failed
Build and Push LST Docker Image / docker (push) Has been cancelled

This commit is contained in:
2026-05-18 21:38:08 -05:00
parent a7bb364a2f
commit 514a44b6de

View File

@@ -112,10 +112,11 @@ const ServerTable = () => {
const [activeToggle, setActiveToggle] = useState(false);
const onToggle = async () => {
setActiveToggle(true);
toast.success(
`${i.row.original.name} just started the upgrade monitor logs for errors.`,
);
setActiveToggle(activeToggle);
try {
const res = await api.post(
`/admin/build/updateServer`,
@@ -124,7 +125,7 @@ const ServerTable = () => {
destination: i.row.original.serverLoc,
token: i.row.original.plantToken,
},
{ withCredentials: true },
{ withCredentials: true, timeout: 5 * 60 * 1000 },
);
if (res.data.success) {