misskey/src/web/app/desktop/scripts/password-dialog.ts
2017-11-13 18:05:35 +09:00

12 lines
278 B
TypeScript

import * as riot from 'riot';
export default (title, onOk, onCancel) => {
const dialog = document.body.appendChild(document.createElement('mk-input-dialog'));
return (riot as any).mount(dialog, {
title: title,
type: 'password',
onOk: onOk,
onCancel: onCancel
});
};