Browse Source

minor fixes

pull/4023/head
Keviin Åberg Kultalahti 6 years ago
parent
commit
bafd229716
  1. 2
      packages/client/src/components/ClientApp.svelte
  2. 2
      packages/client/src/components/NotificationDisplay.svelte
  3. 10
      packages/client/src/store/notification.js

2
packages/client/src/components/ClientApp.svelte

@ -10,7 +10,7 @@
setContext("sdk", SDK) setContext("sdk", SDK)
setContext("component", writable({})) setContext("component", writable({}))
setContext("data", createDataStore()) setContext("data", createDataStore())
setContext("notification", notificationStore) setContext("notifications", notificationStore)
setContext("screenslot", false) setContext("screenslot", false)
let loaded = false let loaded = false

2
packages/client/src/components/NotificationDisplay.svelte

@ -1,7 +1,7 @@
<script> <script>
import { fly } from "svelte/transition" import { fly } from "svelte/transition"
import { getContext } from "svelte" import { getContext } from "svelte"
const notifications = getContext("notification") const notifications = getContext("notifications")
export let themes = { export let themes = {
danger: "#E26D69", danger: "#E26D69",

10
packages/client/src/store/notification.js

@ -43,12 +43,4 @@ const createNotificationStore = () => {
} }
} }
export const notificationStore = createNotificationStore() export const notificationStore = createNotificationStore()
// setTimeout(() => {
// notificationStore.update(state => {
// state.notifications.shift()
// state.notifications = state.notifications
// return state
// })
// }, timeout)
Loading…
Cancel
Save