- Invite Relay
+ Invite Relay
{#if adminView == true}
-
-
- {:else if adminView == false}
-
- {#if $userPublickey === undefined}
-
- {/if}
-
-
-
- {#if invitedata.find((p) => $userPublickey == nip19.npubEncode(p.pk))}
+ on:click={() => (adminView = false)}
+ type="button"
+ class="inline-flex mr-2 items-center px-3 py-2 border border-gray-300 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500"
+ >Leave Reports Viewer
+
+ You are{$userPublickey == nip19.npubEncode($relayMaster) ? "" : " not"} logged
+ in as a relay master
+
+
+ {:else if adminView == false}
-
Invite Someone
+ {#if $userPublickey === undefined}
+
+ {/if}
+
+ {#if $userPublickey !== undefined}
-
+
+
+ {/if}
+ {#if invitedata.find((p) => $userPublickey == nip19.npubEncode(p.pk))}
+
+ {/if}
+
{/if}
-
-
Current hieracy
-
-
-
-
- {/if}
diff --git a/ui/src/components/AdminView.svelte b/ui/src/components/AdminView.svelte
index 2d3d559..c4eee87 100644
--- a/ui/src/components/AdminView.svelte
+++ b/ui/src/components/AdminView.svelte
@@ -1,12 +1,9 @@
-