fix: Service checks

This commit is contained in:
Andras Bacsai
2022-05-11 11:02:21 +02:00
parent e452f68614
commit c917135bd3
3 changed files with 27 additions and 3 deletions

View File

@@ -31,7 +31,10 @@
async function handleSubmit() {
loading = true;
try {
await post(`/services/${id}/check.json`, { fqdn: service.fqdn });
await post(`/services/${id}/check.json`, {
fqdn: service.fqdn,
exposePort: service.exposePort
});
await post(`/services/${id}/${service.type}.json`, { ...service });
return window.location.reload();
} catch ({ error }) {