2017-08-28 09:47:43 -05:00
|
|
|
import * as riot from 'riot';
|
|
|
|
|
|
|
|
export default (title, onOk, onCancel) => {
|
|
|
|
const dialog = document.body.appendChild(document.createElement('mk-input-dialog'));
|
2017-11-13 03:05:35 -06:00
|
|
|
return (riot as any).mount(dialog, {
|
2017-08-28 09:47:43 -05:00
|
|
|
title: title,
|
|
|
|
type: 'password',
|
|
|
|
onOk: onOk,
|
|
|
|
onCancel: onCancel
|
|
|
|
});
|
|
|
|
};
|