pinafore/routes/_components/dialog/showConfirmationDialog.js
2018-03-31 18:46:44 -07:00

13 lines
346 B
JavaScript

import ConfirmationDialog from './ConfirmationDialog.html'
import { createDialogElement } from './createDialogElement'
export function showConfirmationDialog (options) {
let dialog = new ConfirmationDialog({
target: createDialogElement(),
data: Object.assign({
label: 'Confirmation dialog'
}, options)
})
dialog.show()
}