1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-01-09 17:54:20 +01:00
Pinafore-Web-Client-Frontend/routes/_utils/showVideoDialog.js
2018-02-04 19:15:35 -08:00

16 lines
376 B
JavaScript

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