1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

fix transition dropdown bug

This commit is contained in:
Martin McKeaveney 2020-09-17 22:02:30 +01:00
parent 5d3867558a
commit 642662c8bc
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>