mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-19 16:07:32 -03:00
añadido editar y eliminar posts
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
//credentials: 'include',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
"Authorization": `Bearer ${$sesionStore?.accessToken}`
|
||||
Authorization: `Bearer ${$sesionStore?.accessToken}`
|
||||
},
|
||||
|
||||
body: JSON.stringify(data)
|
||||
@@ -51,11 +51,21 @@
|
||||
cargando = false;
|
||||
}
|
||||
}
|
||||
|
||||
function handleKeydown(e: KeyboardEvent) {
|
||||
if (e.ctrlKey && e.key === 'Enter') {
|
||||
handlePost(e);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<form onsubmit={(e: Event) => handlePost(e)}>
|
||||
<InputGroup>
|
||||
<InputGroupTextarea bind:value={mensaje} maxlength="280" placeholder="Alguna novedad?"
|
||||
<InputGroupTextarea
|
||||
bind:value={mensaje}
|
||||
maxlength="280"
|
||||
placeholder="Alguna novedad?"
|
||||
onkeydown={handleKeydown}
|
||||
></InputGroupTextarea>
|
||||
|
||||
<InputGroupAddon align="block-end" class="bg-">
|
||||
|
||||
Reference in New Issue
Block a user