commit
a2da3f620d
|
@ -126,7 +126,11 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
onDestroy(() => {
|
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>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -1,42 +1,9 @@
|
||||||
<script>
|
<script>
|
||||||
import { Tooltip } from "@budibase/bbui"
|
|
||||||
import { UserAvatar } from "@budibase/frontend-core"
|
import { UserAvatar } from "@budibase/frontend-core"
|
||||||
|
|
||||||
export let row
|
export let row
|
||||||
|
|
||||||
let showTooltip
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if row?.user?.email}
|
{#if row?.user?.email}
|
||||||
<div
|
<UserAvatar user={row.user} />
|
||||||
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}
|
{/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 => {
|
this.io.on("connection", async socket => {
|
||||||
// Add built in handler for heartbeats
|
// Add built in handler for heartbeats
|
||||||
socket.on(SocketEvent.Heartbeat, async () => {
|
socket.on(SocketEvent.Heartbeat, async () => {
|
||||||
console.log(socket.data.email, "heartbeat received")
|
|
||||||
await this.extendSessionTTL(socket.data.sessionId)
|
await this.extendSessionTTL(socket.data.sessionId)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue