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