commit
a2da3f620d
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue