Merge pull request #10784 from Budibase/cheeks-fixes

More fixes
This commit is contained in:
Andrew Kingston 2023-06-05 12:15:18 +01:00 committed by GitHub
commit a2da3f620d
3 changed files with 6 additions and 36 deletions

View File

@ -126,7 +126,11 @@
})
onDestroy(() => {
// 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>

View File

@ -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}
{/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>

View File

@ -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)
})