fix: delete resource use window location

This commit is contained in:
Andras Bacsai
2022-09-10 07:58:56 +00:00
parent d844026c29
commit b469d2832d
3 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@
if (service.type && $status.service.isRunning)
await post(`/services/${service.id}/${service.type}/stop`, {});
await del(`/services/${service.id}`, { id: service.id });
return await goto(`/`, { replaceState: true });
return await window.location.assign(`/`);
} catch (error) {
return errorNotification(error);
} finally {