pinafore/routes/_components/dialog/showEmojiDialog.js

14 lines
295 B
JavaScript
Raw Normal View History

2018-02-28 08:18:07 +01:00
import EmojiDialog from './EmojiDialog.html'
2018-03-03 23:51:48 +01:00
export function showEmojiDialog (realm) {
2018-02-28 08:18:07 +01:00
let emojiDialog = new EmojiDialog({
target: document.getElementById('modal-dialog'),
data: {
label: 'Emoji dialog',
2018-03-03 23:51:48 +01:00
title: 'Custom emoji',
realm
2018-02-28 08:18:07 +01:00
}
})
emojiDialog.show()
}