diff --git a/src/lib/components/Setting.svelte b/src/lib/components/Setting.svelte
index 7d87dd6fb..d7b028861 100644
--- a/src/lib/components/Setting.svelte
+++ b/src/lib/components/Setting.svelte
@@ -28,8 +28,9 @@
aria-pressed="false"
class="relative mx-20 inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out"
class:opacity-50={disabled || loading}
- class:bg-green-600={setting}
- class:bg-stone-700={!setting}
+ class:bg-green-600={!loading && setting}
+ class:bg-stone-700={!loading && !setting}
+ class:bg-yellow-500={loading}
>
Use setting
{
} else {
await asyncExecShell(`echo "${decrypt(ftpHostKeyPrivate)}" > ${hostkeyDir}/${id}.rsa`);
}
+ await asyncExecShell(`chmod -R 600 ${hostkeyDir}`);
const { network, engine } = destinationDocker;
const host = getEngine(engine);
if (ftpEnabled) {