fix: Reload window on settings saved

This commit is contained in:
Andras Bacsai 2022-03-28 15:20:49 +02:00
parent 5a4458e93f
commit 908af3e024

View File

@ -109,7 +109,7 @@
try {
await post(`/applications/${id}/check.json`, { fqdn: application.fqdn, forceSave });
await post(`/applications/${id}.json`, { ...application });
return toast.push('Configurations saved.');
return window.location.reload();
} catch ({ error }) {
if (error.startsWith('DNS not set')) {
forceSave = true;