pinafore/routes/_utils/showVideoDialog.js

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()
}