pinafore/routes/_utils/showVideoDialog.js

14 lines
375 B
JavaScript
Raw Normal View History

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