2018-04-08 23:56:20 +00:00
|
|
|
import EmojiDialog from '../components/EmojiDialog.html'
|
|
|
|
import { createDialogElement } from '../helpers/createDialogElement'
|
|
|
|
import { createDialogId } from '../helpers/createDialogId'
|
2018-02-28 07:18:07 +00:00
|
|
|
|
2018-03-03 22:51:48 +00:00
|
|
|
export function showEmojiDialog (realm) {
|
2018-02-28 07:18:07 +00:00
|
|
|
let emojiDialog = new EmojiDialog({
|
2018-04-01 01:46:44 +00:00
|
|
|
target: createDialogElement(),
|
2018-02-28 07:18:07 +00:00
|
|
|
data: {
|
2018-04-08 23:56:20 +00:00
|
|
|
id: createDialogId(),
|
2018-02-28 07:18:07 +00:00
|
|
|
label: 'Emoji dialog',
|
2018-03-03 22:51:48 +00:00
|
|
|
title: 'Custom emoji',
|
|
|
|
realm
|
2018-02-28 07:18:07 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
emojiDialog.show()
|
|
|
|
}
|