Hide link adventure when the user is not the owner
This commit is contained in:
@@ -290,15 +290,17 @@
|
|||||||
tabindex="0"
|
tabindex="0"
|
||||||
class="dropdown-content z-[1] menu p-4 shadow bg-base-300 text-base-content rounded-box w-52 gap-4"
|
class="dropdown-content z-[1] menu p-4 shadow bg-base-300 text-base-content rounded-box w-52 gap-4"
|
||||||
>
|
>
|
||||||
<p class="text-center font-bold text-lg">Link new...</p>
|
{#if collection.user_id === data.user.pk}
|
||||||
<button
|
<p class="text-center font-bold text-lg">Link new...</p>
|
||||||
class="btn btn-primary"
|
<button
|
||||||
on:click={() => {
|
class="btn btn-primary"
|
||||||
isShowingLinkModal = true;
|
on:click={() => {
|
||||||
}}
|
isShowingLinkModal = true;
|
||||||
>
|
}}
|
||||||
Adventure</button
|
>
|
||||||
>
|
Adventure</button
|
||||||
|
>
|
||||||
|
{/if}
|
||||||
<p class="text-center font-bold text-lg">Add new...</p>
|
<p class="text-center font-bold text-lg">Add new...</p>
|
||||||
<button
|
<button
|
||||||
class="btn btn-primary"
|
class="btn btn-primary"
|
||||||
|
|||||||
Reference in New Issue
Block a user