Clean up reactions/replies/thread actions

This commit is contained in:
Jon Staab
2024-10-24 09:45:27 -07:00
parent 72de2e1513
commit d5cd751387
8 changed files with 113 additions and 85 deletions
+11 -6
View File
@@ -7,11 +7,14 @@
import ThreadShare from "@app/components/ThreadShare.svelte"
import {publishDelete} from "@app/commands"
import {pushModal} from "@app/modal"
import {REPLY} from "@app/state"
export let url
export let event
export let onClick
const isRoot = event.kind !== REPLY
const showInfo = () => {
onClick()
pushModal(EventInfo, {event})
@@ -40,12 +43,14 @@
</script>
<ul class="menu whitespace-nowrap rounded-box bg-base-100 p-2 shadow-xl">
<li>
<Button on:click={share}>
<Icon size={4} icon="share-circle" />
Share to Chat
</Button>
</li>
{#if isRoot}
<li>
<Button on:click={share}>
<Icon size={4} icon="share-circle" />
Share to Chat
</Button>
</li>
{/if}
<li>
<Button on:click={showInfo}>
<Icon size={4} icon="code-2" />