4 changed files with 30 additions and 3 deletions
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
<script> |
||||
import { t } from '../../translations.svelte.js'; |
||||
import { onMount } from 'svelte'; |
||||
|
||||
let { user_id } = $props(); |
||||
|
||||
onMount(async () => { |
||||
const url = `${location.protocol}//${location.host.replace('5173','8080')}/api/user/${user.id}`; |
||||
const resp = await fetch(url,{credentials:include}); |
||||
if (resp.ok){ |
||||
const json = await resp.json(); |
||||
} |
||||
}); |
||||
</script> |
||||
|
||||
<fieldset> |
||||
<legend>{t('user.editing')} {user_id}</legend> |
||||
…Edit form here… |
||||
</fieldset> |
||||
Loading…
Reference in new issue