pinafore/routes/_components/dialog/showComposeDialog.js

13 lines
290 B
JavaScript
Raw Normal View History

2018-03-27 07:02:55 +00:00
import ComposeDialog from './ComposeDialog.html'
2018-04-01 01:46:44 +00:00
import { createDialogElement } from './createDialogElement'
2018-03-27 07:02:55 +00:00
export function showComposeDialog () {
let dialog = new ComposeDialog({
2018-04-01 01:46:44 +00:00
target: createDialogElement(),
2018-03-27 07:02:55 +00:00
data: {
label: 'Compose dialog'
}
})
dialog.show()
}