Browse Source
Merge pull request #1087 from Budibase/fix/app-swapping
Fix bug making apps swap to different apps randomly
pull/1092/head
Andrew Kingston
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
10 additions and
3 deletions
-
packages/builder/src/components/feedback/FeedbackNavLink.svelte
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
<script> |
|
|
|
import { Popover } from "@budibase/bbui" |
|
|
|
import { store } from "builderStore" |
|
|
|
import { onMount } from "svelte" |
|
|
|
|
|
|
|
import FeedbackIframe from "./FeedbackIframe.svelte" |
|
|
|
import analytics from "analytics" |
|
|
|
@ -10,9 +11,15 @@ |
|
|
|
let iconContainer |
|
|
|
let popover |
|
|
|
|
|
|
|
setInterval(() => { |
|
|
|
$store.highlightFeedbackIcon = analytics.highlightFeedbackIcon() |
|
|
|
}, FIVE_MINUTES) |
|
|
|
onMount(() => { |
|
|
|
const interval = setInterval(() => { |
|
|
|
store.update(state => { |
|
|
|
state.highlightFeedbackIcon = analytics.highlightFeedbackIcon() |
|
|
|
return state |
|
|
|
}) |
|
|
|
}, FIVE_MINUTES) |
|
|
|
return () => clearInterval(interval) |
|
|
|
}) |
|
|
|
</script> |
|
|
|
|
|
|
|
<div class="container" bind:this={iconContainer} on:click={popover.show}> |
|
|
|
|