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
Some checks failed
Build and Push LST Docker Image / docker (push) Has been cancelled
This commit is contained in:
@@ -112,10 +112,11 @@ const ServerTable = () => {
|
|||||||
const [activeToggle, setActiveToggle] = useState(false);
|
const [activeToggle, setActiveToggle] = useState(false);
|
||||||
|
|
||||||
const onToggle = async () => {
|
const onToggle = async () => {
|
||||||
setActiveToggle(true);
|
|
||||||
toast.success(
|
toast.success(
|
||||||
`${i.row.original.name} just started the upgrade monitor logs for errors.`,
|
`${i.row.original.name} just started the upgrade monitor logs for errors.`,
|
||||||
);
|
);
|
||||||
|
setActiveToggle(activeToggle);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await api.post(
|
const res = await api.post(
|
||||||
`/admin/build/updateServer`,
|
`/admin/build/updateServer`,
|
||||||
@@ -124,7 +125,7 @@ const ServerTable = () => {
|
|||||||
destination: i.row.original.serverLoc,
|
destination: i.row.original.serverLoc,
|
||||||
token: i.row.original.plantToken,
|
token: i.row.original.plantToken,
|
||||||
},
|
},
|
||||||
{ withCredentials: true },
|
{ withCredentials: true, timeout: 5 * 60 * 1000 },
|
||||||
);
|
);
|
||||||
|
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user