pinafore/routes/_components/dialog/showComposeDialog.js

13 lines
290 B
JavaScript
Raw Normal View History

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