pinafore/routes/_components/dialog/showConfirmationDialog.js

12 lines
304 B
JavaScript
Raw Normal View History

2018-02-05 18:43:45 +01:00
import ConfirmationDialog from './ConfirmationDialog.html'
2018-02-09 07:29:29 +01:00
export function showConfirmationDialog (options) {
2018-02-05 18:43:45 +01:00
let dialog = new ConfirmationDialog({
target: document.getElementById('modal-dialog'),
data: Object.assign({
label: 'Confirmation dialog'
}, options)
})
dialog.show()
2018-02-09 07:29:29 +01:00
}