Skip to content

Commit

Permalink
fix: dont show online status when not on a course
Browse files Browse the repository at this point in the history
  • Loading branch information
jouwdan committed Aug 16, 2023
1 parent 0b8df60 commit 209d2ad
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions apps/web/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -109,30 +109,6 @@
<div class="relative">
<button class="btn btn-sm space-x-1" use:popup={{ event: 'click', target: 'avatar' }}>
<div class="relative inline-block">
{#if status && studentsOnline}
<span
class="badge-icon variant-filled-error absolute -top-2 -right-2 z-10 text-white"
>{$studentsOnline}</span
>
{/if}
{#if $currentCourse}
<span class="badge-icon absolute -bottom-2 -right-2 z-10 text-white">
{#if status}
<Icon
icon="fluent:presence-available-24-filled"
color="rgba(var(--color-success-500))"
height="20"
/>
{/if}
{#if !status}
<Icon
icon="fluent:presence-available-24-regular"
color="rgba(var(--color-error-500))"
height="20"
/>
{/if}</span
>
{/if}
<Avatar
width="w-10"
src={data.session.user.user_metadata.avatar_url}
Expand Down

0 comments on commit 209d2ad

Please sign in to comment.