mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-17 01:16:27 +01:00
45e8331e26
Closes #12, #227 and #58
12 lines
331 B
JavaScript
12 lines
331 B
JavaScript
import * as riot from 'riot';
|
|
|
|
export default (title, placeholder, defaultValue, onOk, onCancel) => {
|
|
const dialog = document.body.appendChild(document.createElement('mk-input-dialog'));
|
|
return riot.mount(dialog, {
|
|
title: title,
|
|
placeholder: placeholder,
|
|
'default': defaultValue,
|
|
onOk: onOk,
|
|
onCancel: onCancel
|
|
});
|
|
};
|