mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 18:26:13 +02: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