fix transition dropdown bug

This commit is contained in:
Martin McKeaveney 2020-09-17 22:02:30 +01:00
parent e609414f57
commit 9be2b7d691
3 changed files with 11 additions and 9 deletions

View File

@ -28,6 +28,11 @@ export const getBackendUiStore = () => {
},
},
records: {
save: () =>
store.update(state => {
state.selectedView = state.selectedView
return state
}),
delete: () =>
store.update(state => {
state.selectedView = state.selectedView

View File

@ -2,7 +2,6 @@
import { Heading, Body, Button } from "@budibase/bbui"
import { FILE_TYPES } from "constants/backend"
import api from "builderStore/api"
import { fade } from "svelte/transition"
export let files = []
@ -80,9 +79,10 @@
on:dragenter={handleDragOver}
on:drop={handleDrop}
class:fileDragged>
<ul>
{#if selectedImage}
<li transition:fade>
<li>
<header>
<div>
<i

View File

@ -1,5 +1,5 @@
<script>
import { onMount } from "svelte"
import { onMount, tick } from "svelte"
import { store, backendUiStore } from "builderStore"
import { notifier } from "builderStore/store/notifications"
import { compose, map, get, flatten } from "lodash/fp"
@ -34,12 +34,9 @@
return
}
backendUiStore.update(state => {
state.selectedView = state.selectedView
onClosed()
notifier.success("Record saved successfully.")
return state
})
onClosed()
notifier.success("Record saved successfully.")
backendUiStore.actions.records.save(recordResponse)
}
</script>