2019-02-18 15:43:41 -08:00
|
|
|
import TextConfirmationDialog from '../components/TextConfirmationDialog.html'
|
2018-04-08 16:56:20 -07:00
|
|
|
import { createDialogElement } from '../helpers/createDialogElement'
|
|
|
|
import { createDialogId } from '../helpers/createDialogId'
|
2018-02-05 09:43:45 -08:00
|
|
|
|
2019-02-18 15:43:41 -08:00
|
|
|
export default function showTextConfirmationDialog (options) {
|
|
|
|
let dialog = new TextConfirmationDialog({
|
2018-03-31 18:46:44 -07:00
|
|
|
target: createDialogElement(),
|
2018-02-05 09:43:45 -08:00
|
|
|
data: Object.assign({
|
2018-04-08 16:56:20 -07:00
|
|
|
id: createDialogId(),
|
2018-02-05 09:43:45 -08:00
|
|
|
label: 'Confirmation dialog'
|
|
|
|
}, options)
|
|
|
|
})
|
|
|
|
dialog.show()
|
2019-02-18 15:43:41 -08:00
|
|
|
return dialog
|
2018-02-08 22:29:29 -08:00
|
|
|
}
|