diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-08-28 23:47:43 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-08-28 23:47:43 +0900 |
| commit | ffaec0b9712df9a5024c0883a154442f02b72a03 (patch) | |
| tree | 004e54ee0115860d8fa009ad8f5e2e14479ef239 /src/web/app/desktop/scripts | |
| parent | WIP #738 (diff) | |
| download | sharkey-ffaec0b9712df9a5024c0883a154442f02b72a03.tar.gz sharkey-ffaec0b9712df9a5024c0883a154442f02b72a03.tar.bz2 sharkey-ffaec0b9712df9a5024c0883a154442f02b72a03.zip | |
#497
Diffstat (limited to 'src/web/app/desktop/scripts')
| -rw-r--r-- | src/web/app/desktop/scripts/password-dialog.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/web/app/desktop/scripts/password-dialog.js b/src/web/app/desktop/scripts/password-dialog.js new file mode 100644 index 0000000000..2bdc93e421 --- /dev/null +++ b/src/web/app/desktop/scripts/password-dialog.js @@ -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 + }); +}; |