Add transition to automation survey
This commit is contained in:
parent
4c8f86941b
commit
5ea8aab88e
|
@ -13,6 +13,7 @@
|
||||||
selectedAutomation,
|
selectedAutomation,
|
||||||
} from "stores/builder"
|
} from "stores/builder"
|
||||||
import { createLocalStorageStore } from "@budibase/frontend-core"
|
import { createLocalStorageStore } from "@budibase/frontend-core"
|
||||||
|
import { fly } from "svelte/transition"
|
||||||
|
|
||||||
$: automationId = $selectedAutomation?.data?._id
|
$: automationId = $selectedAutomation?.data?._id
|
||||||
$: builderStore.selectResource(automationId)
|
$: builderStore.selectResource(automationId)
|
||||||
|
@ -30,9 +31,11 @@
|
||||||
|
|
||||||
let modal
|
let modal
|
||||||
let webhookModal
|
let webhookModal
|
||||||
|
let mounted = false
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
$automationStore.showTestPanel = false
|
$automationStore.showTestPanel = false
|
||||||
|
mounted = true
|
||||||
})
|
})
|
||||||
|
|
||||||
onDestroy(stopSyncing)
|
onDestroy(stopSyncing)
|
||||||
|
@ -80,8 +83,12 @@
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if !$surveyDismissed}
|
{#if !$surveyDismissed && mounted}
|
||||||
<div class="survey">
|
<div
|
||||||
|
class="survey"
|
||||||
|
in:fly={{ x: 600, duration: 260, delay: 1000 }}
|
||||||
|
out:fly={{ x: 600, duration: 260 }}
|
||||||
|
>
|
||||||
<div class="survey__body">
|
<div class="survey__body">
|
||||||
<div class="survey__title">We value your feedback!</div>
|
<div class="survey__title">We value your feedback!</div>
|
||||||
<div class="survey__text">
|
<div class="survey__text">
|
||||||
|
|
Loading…
Reference in New Issue