fix: do not run cleanup and build parallel

fix: UI error toasts
This commit is contained in:
Andras Bacsai
2022-07-08 14:11:18 +02:00
parent d344a9bb4f
commit da11bae67c
18 changed files with 66 additions and 42 deletions

View File

@@ -73,7 +73,7 @@
try {
await del(`/databases/${database.id}`, { id: database.id });
return await goto('/databases');
} catch ({ error }) {
} catch (error) {
return errorNotification(error);
} finally {
loading = false;
@@ -87,7 +87,7 @@
try {
await post(`/databases/${database.id}/stop`, {});
return window.location.reload();
} catch ({ error }) {
} catch (error) {
return errorNotification(error);
}
}
@@ -97,7 +97,7 @@
try {
await post(`/databases/${database.id}/start`, {});
return window.location.reload();
} catch ({ error }) {
} catch (error) {
return errorNotification(error);
}
}