pinafore/routes/_components/dialog/showConfirmationDialog.js
2018-02-05 09:43:45 -08:00

11 lines
302 B
JavaScript

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