diff --git a/routes/_components/status/Media.html b/routes/_components/status/Media.html index e60e852b..2828cf76 100644 --- a/routes/_components/status/Media.html +++ b/routes/_components/status/Media.html @@ -5,7 +5,7 @@ + on:click="onClickPlayVideoButton(media, media.description)"> @@ -132,8 +132,8 @@ maxMediaWidth: (mediaAttachments) => Math.max.apply(Math, mediaAttachments.map(media => media.meta && media.meta.small && typeof media.meta.small.width === 'number' ? media.meta.small.width : DEFAULT_MEDIA_WIDTH)) }, methods: { - async onClickPlayVideoButton(media, width, height, description) { - showVideoDialog(media.preview_url, media.url, width, height, description) + async onClickPlayVideoButton(media, description) { + showVideoDialog(media.preview_url, media.url, description) } }, events: { diff --git a/routes/_components/status/VideoDialog.html b/routes/_components/status/VideoDialog.html index 246abfba..d6dee452 100644 --- a/routes/_components/status/VideoDialog.html +++ b/routes/_components/status/VideoDialog.html @@ -1,8 +1,6 @@ diff --git a/routes/_utils/showVideoDialog.js b/routes/_utils/showVideoDialog.js index 8e8a6ba2..fc6b9083 100644 --- a/routes/_utils/showVideoDialog.js +++ b/routes/_utils/showVideoDialog.js @@ -1,14 +1,12 @@ import VideoDialog from '../_components/status/VideoDialog.html' import { createDialogElement } from './dialogs' -export function showVideoDialog(poster, src, width, height, description) { +export function showVideoDialog(poster, src, description) { let videoDialog = new VideoDialog({ target: createDialogElement('Video dialog'), data: { poster: poster, src: src, - width: width, - height: height, description: description } })