Skip to content

Commit

Permalink
feat: add vimeo id to lecture
Browse files Browse the repository at this point in the history
this closes #238
  • Loading branch information
marianzburlea committed Sep 19, 2019
1 parent 8c9cbd3 commit 7675049
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/component/lecture/lecture.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default {
type: 'datetime-local',
placeholder: 'Set the date when the lecture goes live',
label: 'Go live date',
defaultValue: false,
defaultValue: new Date().toJSON().slice(0, 16),
edit: true,
visible: true,
value: false
Expand All @@ -53,6 +53,15 @@ export default {
visible: false,
value: 0
},
vimeoVideoId: {
type: 'text',
placeholder: 'Change Vimeo Video Id',
label: 'Vimeo Video Id',
defaultValue: '',
edit: true,
visible: true,
value: ''
},
youtubeVideoId: {
type: 'text',
placeholder: 'Change YouTube Video Id',
Expand All @@ -63,4 +72,4 @@ export default {
value: ''
}
}
};
};
1 change: 0 additions & 1 deletion src/component/play-video/play-video.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const PlayVideo = ({ youtubeVideoId }) => {
}
return (
<div>
{/* video.index {video.index} */}
<StyledVideo>
{video && <iframe
width="100%"
Expand Down

0 comments on commit 7675049

Please sign in to comment.