Format ssh private key on input

This commit is contained in:
Johannes Zellner
2025-11-10 17:25:34 +01:00
parent eeef49fd19
commit 2cb755fe44
2 changed files with 12 additions and 2 deletions
@@ -1,6 +1,6 @@
<script setup>
import { ref, useTemplateRef } from 'vue';
import { ref, useTemplateRef, watch } from 'vue';
import { MaskedInput, Dialog, FormGroup, TextInput, Checkbox } from '@cloudron/pankow';
import { prettyBinarySize } from '@cloudron/pankow/utils';
import { s3like, mountlike, regionName } from '../utils.js';
@@ -38,6 +38,11 @@ const useHardlinks = ref(false);
const chown = ref(false);
const preserveAttributes = ref(false);
watch(mountOptionsPrivateKey, () => {
if (!mountOptionsPrivateKey.value) return;
mountOptionsPrivateKey.value = mountOptionsPrivateKey.value.replaceAll('\\n', '\n');
});
async function onSubmit() {
busy.value = true;