fix transition dropdown bug
This commit is contained in:
parent
5d3867558a
commit
642662c8bc
|
@ -28,6 +28,11 @@ export const getBackendUiStore = () => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
records: {
|
records: {
|
||||||
|
save: () =>
|
||||||
|
store.update(state => {
|
||||||
|
state.selectedView = state.selectedView
|
||||||
|
return state
|
||||||
|
}),
|
||||||
delete: () =>
|
delete: () =>
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
state.selectedView = state.selectedView
|
state.selectedView = state.selectedView
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
import { Heading, Body, Button } from "@budibase/bbui"
|
import { Heading, Body, Button } from "@budibase/bbui"
|
||||||
import { FILE_TYPES } from "constants/backend"
|
import { FILE_TYPES } from "constants/backend"
|
||||||
import api from "builderStore/api"
|
import api from "builderStore/api"
|
||||||
import { fade } from "svelte/transition"
|
|
||||||
|
|
||||||
export let files = []
|
export let files = []
|
||||||
|
|
||||||
|
@ -80,9 +79,10 @@
|
||||||
on:dragenter={handleDragOver}
|
on:dragenter={handleDragOver}
|
||||||
on:drop={handleDrop}
|
on:drop={handleDrop}
|
||||||
class:fileDragged>
|
class:fileDragged>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{#if selectedImage}
|
{#if selectedImage}
|
||||||
<li transition:fade>
|
<li>
|
||||||
<header>
|
<header>
|
||||||
<div>
|
<div>
|
||||||
<i
|
<i
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { onMount } from "svelte"
|
import { onMount, tick } from "svelte"
|
||||||
import { store, backendUiStore } from "builderStore"
|
import { store, backendUiStore } from "builderStore"
|
||||||
import { notifier } from "builderStore/store/notifications"
|
import { notifier } from "builderStore/store/notifications"
|
||||||
import { compose, map, get, flatten } from "lodash/fp"
|
import { compose, map, get, flatten } from "lodash/fp"
|
||||||
|
@ -34,12 +34,9 @@
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
backendUiStore.update(state => {
|
|
||||||
state.selectedView = state.selectedView
|
|
||||||
onClosed()
|
onClosed()
|
||||||
notifier.success("Record saved successfully.")
|
notifier.success("Record saved successfully.")
|
||||||
return state
|
backendUiStore.actions.records.save(recordResponse)
|
||||||
})
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue