summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-08-28 23:47:43 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-08-28 23:47:43 +0900
commitffaec0b9712df9a5024c0883a154442f02b72a03 (patch)
tree004e54ee0115860d8fa009ad8f5e2e14479ef239 /src/web/app/desktop/scripts
parentWIP #738 (diff)
downloadsharkey-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.js11
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
+ });
+};