Merge pull request #1087 from Budibase/fix/app-swapping

Fix bug making apps swap to different apps randomly
This commit is contained in:
Andrew Kingston 2021-02-04 12:41:40 +00:00 committed by GitHub
commit cc2026f6a4
1 changed files with 10 additions and 3 deletions

View File

@ -1,6 +1,7 @@
<script> <script>
import { Popover } from "@budibase/bbui" import { Popover } from "@budibase/bbui"
import { store } from "builderStore" import { store } from "builderStore"
import { onMount } from "svelte"
import FeedbackIframe from "./FeedbackIframe.svelte" import FeedbackIframe from "./FeedbackIframe.svelte"
import analytics from "analytics" import analytics from "analytics"
@ -10,9 +11,15 @@
let iconContainer let iconContainer
let popover let popover
setInterval(() => { onMount(() => {
$store.highlightFeedbackIcon = analytics.highlightFeedbackIcon() const interval = setInterval(() => {
}, FIVE_MINUTES) store.update(state => {
state.highlightFeedbackIcon = analytics.highlightFeedbackIcon()
return state
})
}, FIVE_MINUTES)
return () => clearInterval(interval)
})
</script> </script>
<div class="container" bind:this={iconContainer} on:click={popover.show}> <div class="container" bind:this={iconContainer} on:click={popover.show}>