pinafore/routes/_components/dialog/creators/showComposeDialog.js
2018-04-21 09:56:53 -07:00

15 lines
406 B
JavaScript

import ComposeDialog from '../components/ComposeDialog.html'
import { createDialogElement } from '../helpers/createDialogElement'
import { createDialogId } from '../helpers/createDialogId'
export default function showComposeDialog () {
let dialog = new ComposeDialog({
target: createDialogElement(),
data: {
id: createDialogId(),
label: 'Compose dialog'
}
})
dialog.show()
}