pinafore/routes/_components/dialog/showComposeDialog.js

13 lines
290 B
JavaScript
Raw Normal View History

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