mirror of
https://github.com/nolanlawson/pinafore
synced 2025-02-02 22:57:36 +01:00
13 lines
346 B
JavaScript
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()
|
|
}
|