pinafore/routes/_utils/showVideoDialog.js

14 lines
375 B
JavaScript

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