1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-02 14:56:48 +01:00
2018-04-08 16:56:20 -07:00

15 lines
454 B
JavaScript

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