2018-02-05 17:43:45 +00:00
|
|
|
import ImageDialog from './ImageDialog.html'
|
2018-02-04 23:59:42 +00:00
|
|
|
|
2018-02-09 06:29:29 +00:00
|
|
|
export function showImageDialog (poster, src, type, width, height, description) {
|
2018-02-04 23:59:42 +00:00
|
|
|
let imageDialog = new ImageDialog({
|
2018-02-05 03:15:35 +00:00
|
|
|
target: document.getElementById('modal-dialog'),
|
2018-02-04 23:59:42 +00:00
|
|
|
data: {
|
2018-02-05 03:15:35 +00:00
|
|
|
label: 'Image dialog',
|
2018-02-04 23:59:42 +00:00
|
|
|
poster,
|
|
|
|
src,
|
|
|
|
type,
|
|
|
|
width,
|
|
|
|
height,
|
|
|
|
description
|
|
|
|
}
|
|
|
|
})
|
|
|
|
imageDialog.show()
|
2018-02-09 06:29:29 +00:00
|
|
|
}
|