refac
This commit is contained in:
@@ -225,7 +225,8 @@
|
|||||||
<Tooltip content={$i18n.t('Edit')}>
|
<Tooltip content={$i18n.t('Edit')}>
|
||||||
<button
|
<button
|
||||||
class="self-center w-fit text-sm p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
class="self-center w-fit text-sm p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
||||||
on:click={() => {
|
on:click={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
selectedMemory = memory;
|
selectedMemory = memory;
|
||||||
showEditMemoryModal = true;
|
showEditMemoryModal = true;
|
||||||
}}
|
}}
|
||||||
@@ -237,7 +238,8 @@
|
|||||||
<Tooltip content={$i18n.t('Delete')}>
|
<Tooltip content={$i18n.t('Delete')}>
|
||||||
<button
|
<button
|
||||||
class="self-center w-fit text-sm p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
class="self-center w-fit text-sm p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
|
||||||
on:click={async () => {
|
on:click={async (e) => {
|
||||||
|
e.stopPropagation();
|
||||||
const res = await deleteMemoryById(
|
const res = await deleteMemoryById(
|
||||||
localStorage.token,
|
localStorage.token,
|
||||||
memory.id
|
memory.id
|
||||||
|
|||||||
Reference in New Issue
Block a user