mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 08:55:56 +02:00
This commit is contained in:
11
src/web/app/desktop/scripts/password-dialog.js
Normal file
11
src/web/app/desktop/scripts/password-dialog.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as riot from 'riot';
|
||||
|
||||
export default (title, onOk, onCancel) => {
|
||||
const dialog = document.body.appendChild(document.createElement('mk-input-dialog'));
|
||||
return riot.mount(dialog, {
|
||||
title: title,
|
||||
type: 'password',
|
||||
onOk: onOk,
|
||||
onCancel: onCancel
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user