No longer showing logged out users the profile pic thingy
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Nicolai Ort 2021-08-21 08:38:01 +02:00
parent 8c1a2d319b
commit 2010cc3260
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 11 additions and 9 deletions

View File

@ -12,7 +12,7 @@
onDestroy(unsubscribe); onDestroy(unsubscribe);
async function logout() { async function logout() {
await Apiclient.logout().catch((e)=>{}); await Apiclient.logout().catch((e) => {});
UserStore.logout(); UserStore.logout();
} }
</script> </script>
@ -155,13 +155,15 @@
{/if} {/if}
</nav> </nav>
<div class="flex items-center px-4 -mx-2"> {#if logged_in}
<img <div class="flex items-center px-4 -mx-2">
class="object-cover mx-2 rounded-full h-9 w-9" <img
src="https://images.unsplash.com/photo-1531427186611-ecfd6d936c79?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=634&q=80" class="object-cover mx-2 rounded-full h-9 w-9"
alt="avatar" src="https://images.unsplash.com/photo-1531427186611-ecfd6d936c79?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=634&q=80"
/> alt="avatar"
<h4 class="mx-2 font-medium text-gray-800 dark:text-gray-200 hover:underline">John Doe</h4> />
</div> <h4 class="mx-2 font-medium text-gray-800 dark:text-gray-200 hover:underline">Username here</h4>
</div>
{/if}
</div> </div>
</div> </div>