mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-17 01:16:27 +01:00
11 lines
269 B
JavaScript
11 lines
269 B
JavaScript
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
|
|
});
|
|
};
|