feat: Databases on ARM

This commit is contained in:
Andras Bacsai
2022-08-12 11:48:38 +02:00
parent 5d5a478cd1
commit 8d3ca92fe9
6 changed files with 115 additions and 62 deletions

View File

@@ -58,7 +58,9 @@
}
async function changeSettings(name: any) {
if (publicLoading || !$status.database.isRunning) return;
if (name !== 'appendOnly') {
if (publicLoading || !$status.database.isRunning || name !== 'appendOnly') return;
}
publicLoading = true;
let data = {
isPublic,
@@ -92,9 +94,9 @@
await post(`/databases/${id}`, { ...database, isRunning: $status.database.isRunning });
generateDbDetails();
addToast({
message: 'Configuration saved.',
type: 'success'
});
message: 'Configuration saved.',
type: 'success'
});
} catch (error) {
return errorNotification(error);
} finally {
@@ -111,7 +113,7 @@
<button
type="submit"
class="btn btn-sm"
class:loading={loading}
class:loading
class:bg-databases={!loading}
disabled={loading}>{$t('forms.save')}</button
>