2018-04-09 01:56:20 +02:00
|
|
|
import ImageDialog from '../components/ImageDialog.html'
|
|
|
|
import { createDialogElement } from '../helpers/createDialogElement'
|
|
|
|
import { createDialogId } from '../helpers/createDialogId'
|
2018-02-05 00:59:42 +01:00
|
|
|
|
2018-04-21 18:56:53 +02:00
|
|
|
export default function showImageDialog (poster, src, type, width, height, description) {
|
2018-02-05 00:59:42 +01:00
|
|
|
let imageDialog = new ImageDialog({
|
2018-04-01 03:46:44 +02:00
|
|
|
target: createDialogElement(),
|
2018-02-05 00:59:42 +01:00
|
|
|
data: {
|
2018-04-09 01:56:20 +02:00
|
|
|
id: createDialogId(),
|
2018-02-05 04:15:35 +01:00
|
|
|
label: 'Image dialog',
|
2018-02-05 00:59:42 +01:00
|
|
|
poster,
|
|
|
|
src,
|
|
|
|
type,
|
|
|
|
width,
|
|
|
|
height,
|
|
|
|
description
|
|
|
|
}
|
|
|
|
})
|
|
|
|
imageDialog.show()
|
2018-02-09 07:29:29 +01:00
|
|
|
}
|