pinafore/routes/_utils/showVideoDialog.js
2018-02-04 15:59:42 -08:00

16 lines
391 B
JavaScript

import VideoDialog from '../_components/status/VideoDialog.html'
import { createDialogElement } from './dialogs'
export function showVideoDialog(poster, src, width, height, description) {
let videoDialog = new VideoDialog({
target: createDialogElement('Video dialog'),
data: {
poster,
src,
width,
height,
description
}
})
videoDialog.show()
}