2018-04-09 01:56:20 +02:00
|
|
|
import ConfirmationDialog from '../components/ConfirmationDialog.html'
|
|
|
|
import { createDialogElement } from '../helpers/createDialogElement'
|
|
|
|
import { createDialogId } from '../helpers/createDialogId'
|
2018-02-05 18:43:45 +01:00
|
|
|
|
2018-02-09 07:29:29 +01:00
|
|
|
export function showConfirmationDialog (options) {
|
2018-02-05 18:43:45 +01:00
|
|
|
let dialog = new ConfirmationDialog({
|
2018-04-01 03:46:44 +02:00
|
|
|
target: createDialogElement(),
|
2018-02-05 18:43:45 +01:00
|
|
|
data: Object.assign({
|
2018-04-09 01:56:20 +02:00
|
|
|
id: createDialogId(),
|
2018-02-05 18:43:45 +01:00
|
|
|
label: 'Confirmation dialog'
|
|
|
|
}, options)
|
|
|
|
})
|
|
|
|
dialog.show()
|
2018-02-09 07:29:29 +01:00
|
|
|
}
|