1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-23 10:24:29 +01:00
Pinafore-Web-Client-Frontend/routes/_components/dialog/creators/showComposeDialog.js
2018-04-08 16:56:20 -07:00

15 lines
398 B
JavaScript

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