2018-01-28 00:35:44 +00:00
|
|
|
import VideoDialog from '../_components/status/VideoDialog.html'
|
2018-02-04 21:49:43 +00:00
|
|
|
import { createDialogElement } from './dialogs'
|
2018-01-21 04:20:33 +00:00
|
|
|
|
2018-02-04 23:08:34 +00:00
|
|
|
export function showVideoDialog(poster, src, description) {
|
2018-01-21 04:20:33 +00:00
|
|
|
let videoDialog = new VideoDialog({
|
2018-02-04 21:49:43 +00:00
|
|
|
target: createDialogElement('Video dialog'),
|
2018-01-21 04:20:33 +00:00
|
|
|
data: {
|
|
|
|
poster: poster,
|
|
|
|
src: src,
|
2018-01-21 18:32:18 +00:00
|
|
|
description: description
|
2018-01-21 04:20:33 +00:00
|
|
|
}
|
|
|
|
})
|
2018-02-04 21:49:43 +00:00
|
|
|
videoDialog.show()
|
2018-01-21 04:20:33 +00:00
|
|
|
}
|