tidy up
This commit is contained in:
parent
a48f8434eb
commit
37ddd416c0
|
@ -59,11 +59,10 @@ export const createDataSourceStore = () => {
|
||||||
|
|
||||||
// Emit this as a window event, so parent screens which are iframing us in
|
// Emit this as a window event, so parent screens which are iframing us in
|
||||||
// can also invalidate the same datasource
|
// can also invalidate the same datasource
|
||||||
window.dispatchEvent(
|
window.parent.postMessage({
|
||||||
new CustomEvent("invalidate-datasource", {
|
type: "close-screen-modal",
|
||||||
detail: { dataSourceId },
|
detail: { dataSourceId },
|
||||||
})
|
})
|
||||||
)
|
|
||||||
|
|
||||||
let invalidations = [dataSourceId]
|
let invalidations = [dataSourceId]
|
||||||
|
|
||||||
|
|
|
@ -34,11 +34,6 @@ const createNotificationStore = () => {
|
||||||
icon,
|
icon,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
// window.dispatchEvent(
|
|
||||||
// new CustomEvent("notification", {
|
|
||||||
// detail: { message, type, icon },
|
|
||||||
// })
|
|
||||||
// )
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,7 @@ const changeFormStepHandler = async (action, context) => {
|
||||||
const closeScreenModalHandler = () => {
|
const closeScreenModalHandler = () => {
|
||||||
// Emit this as a window event, so parent screens which are iframing us in
|
// Emit this as a window event, so parent screens which are iframing us in
|
||||||
// can close the modal
|
// can close the modal
|
||||||
window.dispatchEvent(new Event("close-screen-modal"))
|
window.parent.postMessage({ type: "close-screen-modal" })
|
||||||
}
|
}
|
||||||
|
|
||||||
const updateStateHandler = action => {
|
const updateStateHandler = action => {
|
||||||
|
|
Loading…
Reference in New Issue