mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-13 23:25:41 +02:00
Initial commit 🍀
This commit is contained in:
13
src/web/app/desktop/scripts/input-dialog.ls
Normal file
13
src/web/app/desktop/scripts/input-dialog.ls
Normal file
@@ -0,0 +1,13 @@
|
||||
# Input Dialog
|
||||
#================================
|
||||
|
||||
riot = require 'riot'
|
||||
|
||||
module.exports = (title, placeholder, default-value, on-ok, on-cancel) ~>
|
||||
dialog = document.body.append-child document.create-element \mk-input-dialog
|
||||
riot.mount dialog, do
|
||||
title: title
|
||||
placeholder: placeholder
|
||||
default: default-value
|
||||
on-ok: on-ok
|
||||
on-cancel: on-cancel
|
||||
Reference in New Issue
Block a user