feat: add matrix user link, close #124
This commit is contained in:
1 parent
2c4132d899
commit
e73d74ff31
2 files changed
+25
-9
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
Icon,
|
Icon,
|
||||||
NoSymbol,
|
NoSymbol,
|
||||||
PencilSquare,
|
PencilSquare,
|
||||||
|
ShieldCheck,
|
||||||
ShieldExclamation,
|
ShieldExclamation,
|
||||||
UserPlus,
|
UserPlus,
|
||||||
} from 'svelte-hero-icons'
|
} from 'svelte-hero-icons'
|
||||||
@@ -204,14 +205,29 @@
|
|||||||
</div>
|
</div>
|
||||||
{#if $profile?.user && $profile.jwt && data.person_view.person.id != $profile.user.local_user_view.person.id}
|
{#if $profile?.user && $profile.jwt && data.person_view.person.id != $profile.user.local_user_view.person.id}
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<Button
|
<div class="flex items-center gap-2 w-full">
|
||||||
size="lg"
|
<Button
|
||||||
color="secondary"
|
size="lg"
|
||||||
on:click={() => (messaging = true)}
|
color="secondary"
|
||||||
>
|
on:click={() => (messaging = true)}
|
||||||
<Icon slot="icon" solid size="16" src={Envelope} />
|
class="flex-1"
|
||||||
Message
|
>
|
||||||
</Button>
|
<Icon slot="icon" solid size="16" src={Envelope} />
|
||||||
|
Message
|
||||||
|
</Button>
|
||||||
|
{#if data.person_view.person.matrix_user_id}
|
||||||
|
<Button
|
||||||
|
size="lg"
|
||||||
|
color="secondary"
|
||||||
|
href="https://matrix.to/#/{data.person_view.person
|
||||||
|
.matrix_user_id}"
|
||||||
|
class="flex-1"
|
||||||
|
>
|
||||||
|
<Icon slot="icon" solid size="16" src={ShieldCheck} />
|
||||||
|
Matrix User
|
||||||
|
</Button>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
<Button
|
<Button
|
||||||
size="lg"
|
size="lg"
|
||||||
color="danger"
|
color="danger"
|
||||||
|
|||||||
Reference in new issue
Block a user