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