work-work

This commit is contained in:
Andras Bacsai
2022-10-17 15:43:57 +02:00
parent a7e86d9afd
commit 8f660c0276
12 changed files with 322 additions and 105 deletions

View File

@@ -26,7 +26,7 @@
<script lang="ts">
export let services: any;
let search = '';
let filteredServices = services;
@@ -40,7 +40,7 @@
async function handleSubmit(service: any) {
try {
await post(`/services/${id}/configuration/type`, { ...service });
await post(`/services/${id}/configuration/type`, { type: service.name });
return await goto(from || `/services/${id}`);
} catch (error) {
return errorNotification(error);