pinafore/routes/_components/dialog/showConfirmationDialog.js

13 lines
346 B
JavaScript
Raw Normal View History

2018-02-05 17:43:45 +00:00
import ConfirmationDialog from './ConfirmationDialog.html'
2018-04-01 01:46:44 +00:00
import { createDialogElement } from './createDialogElement'
2018-02-05 17:43:45 +00:00
2018-02-09 06:29:29 +00:00
export function showConfirmationDialog (options) {
2018-02-05 17:43:45 +00:00
let dialog = new ConfirmationDialog({
2018-04-01 01:46:44 +00:00
target: createDialogElement(),
2018-02-05 17:43:45 +00:00
data: Object.assign({
label: 'Confirmation dialog'
}, options)
})
dialog.show()
2018-02-09 06:29:29 +00:00
}