pinafore/routes/_utils/showVideoDialog.js

16 lines
391 B
JavaScript
Raw Normal View History

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