Browse Source

Fix bug making apps swap to different apps randomly

master
Andrew Kingston 6 years ago
parent
commit
1e2627cdfb
  1. 12
      packages/builder/src/components/feedback/FeedbackNavLink.svelte

12
packages/builder/src/components/feedback/FeedbackNavLink.svelte

@ -1,18 +1,22 @@
<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"
const FIVE_MINUTES = 300000 const FIVE_MINUTES = 30000
let iconContainer let iconContainer
let popover let popover
setInterval(() => { onMount(() => {
$store.highlightFeedbackIcon = analytics.highlightFeedbackIcon() const interval = setInterval(() => {
}, FIVE_MINUTES) $store.highlightFeedbackIcon = analytics.highlightFeedbackIcon()
}, 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}>

Loading…
Cancel
Save