mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-06 16:53:58 +09:00
なんかもうめっちゃ変えた
This commit is contained in:
12
src/web/app/desktop/scripts/input-dialog.ts
Normal file
12
src/web/app/desktop/scripts/input-dialog.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import * as riot from 'riot';
|
||||
|
||||
export default (title, placeholder, defaultValue, onOk, onCancel) => {
|
||||
const dialog = document.body.appendChild(document.createElement('mk-input-dialog'));
|
||||
return (riot as any).mount(dialog, {
|
||||
title: title,
|
||||
placeholder: placeholder,
|
||||
'default': defaultValue,
|
||||
onOk: onOk,
|
||||
onCancel: onCancel
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user