Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More fixes #10784

Merged
merged 4 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@
})

onDestroy(() => {
store.actions.reset()
// Run async on a slight delay to let other cleanup logic run without
// being confused by the store wiping
setTimeout(() => {
store.actions.reset()
}, 10)
})
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,42 +1,9 @@
<script>
import { Tooltip } from "@budibase/bbui"
import { UserAvatar } from "@budibase/frontend-core"

export let row

let showTooltip
</script>

{#if row?.user?.email}
<div
class="container"
on:mouseover={() => (showTooltip = true)}
on:focus={() => (showTooltip = true)}
on:mouseleave={() => (showTooltip = false)}
>
<UserAvatar user={row.user} />
</div>
{#if showTooltip}
<div class="tooltip">
<Tooltip textWrapping text={row.user.email} direction="bottom" />
</div>
{/if}
<UserAvatar user={row.user} />
{/if}

<style>
.container {
position: relative;
}
.tooltip {
z-index: 1;
position: absolute;
top: 75%;
left: 120%;
transform: translateX(-100%) translateY(-50%);
display: flex;
flex-direction: row;
justify-content: flex-end;
width: 130px;
pointer-events: none;
}
</style>
1 change: 0 additions & 1 deletion packages/server/src/websockets/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export class BaseSocket {
this.io.on("connection", async socket => {
// Add built in handler for heartbeats
socket.on(SocketEvent.Heartbeat, async () => {
console.log(socket.data.email, "heartbeat received")
await this.extendSessionTTL(socket.data.sessionId)
})

Expand Down