This commit is contained in:
parent
f546edb810
commit
ffaec0b971
14 changed files with 137 additions and 33 deletions
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
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue