preparing storing of new contact

This commit is contained in:
2025-10-09 20:34:38 +02:00
parent b0364ec77e
commit e0c05506c3
7 changed files with 129 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
<script>
import LineEditor from '../../Components/LineEditor.svelte';
import { url } from '../../vcard.js';
import { t } from '../../translations.svelte';
let { code, patch = (from, to) => true } = $props();
let value = $derived(url(code));
function onSet(newVal){
const newCode = code.replace(value,newVal);
return patch(code,newCode);
}
</script>
{#if value}
<LineEditor type="span" editable={true} {value} {onSet} title={t('url')}/>
{/if}