feat: add and close #103
This commit is contained in:
1 parent
b277a3562f
commit
5b79dc9c50
1 file changed
+17
@@ -18,7 +18,9 @@
|
|||||||
ChatBubbleOvalLeftEllipsis,
|
ChatBubbleOvalLeftEllipsis,
|
||||||
Cog6Tooth,
|
Cog6Tooth,
|
||||||
Icon,
|
Icon,
|
||||||
|
Minus,
|
||||||
PencilSquare,
|
PencilSquare,
|
||||||
|
Plus,
|
||||||
UserGroup,
|
UserGroup,
|
||||||
} from 'svelte-hero-icons'
|
} from 'svelte-hero-icons'
|
||||||
|
|
||||||
@@ -109,6 +111,15 @@
|
|||||||
</div>
|
</div>
|
||||||
{#if $profile?.jwt}
|
{#if $profile?.jwt}
|
||||||
<div class="w-full mt-2 flex flex-col gap-2">
|
<div class="w-full mt-2 flex flex-col gap-2">
|
||||||
|
<Button
|
||||||
|
href="/create/post"
|
||||||
|
color="ghost"
|
||||||
|
size="lg"
|
||||||
|
disabled={community_view.community.posting_restricted_to_mods}
|
||||||
|
>
|
||||||
|
<Icon src={PencilSquare} mini size="16" slot="icon" />
|
||||||
|
Create Post
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
disabled={loading.subscribing}
|
disabled={loading.subscribing}
|
||||||
loading={loading.subscribing}
|
loading={loading.subscribing}
|
||||||
@@ -116,6 +127,12 @@
|
|||||||
size="lg"
|
size="lg"
|
||||||
on:click={subscribe}
|
on:click={subscribe}
|
||||||
>
|
>
|
||||||
|
<Icon
|
||||||
|
src={community_view.subscribed == 'Subscribed' ? Minus : Plus}
|
||||||
|
mini
|
||||||
|
size="16"
|
||||||
|
slot="icon"
|
||||||
|
/>
|
||||||
{community_view.subscribed == 'Subscribed' ||
|
{community_view.subscribed == 'Subscribed' ||
|
||||||
community_view.subscribed == 'Pending'
|
community_view.subscribed == 'Pending'
|
||||||
? 'Unsubscribe'
|
? 'Unsubscribe'
|
||||||
|
|||||||
Reference in new issue
Block a user