Skip to content

Commit

Permalink
displaying both bunny video id and youtube url fields so we can start…
Browse files Browse the repository at this point in the history
… filling in both to conditionally display based on access level
  • Loading branch information
tomgobich committed Jun 12, 2024
1 parent 717725c commit 42ba2ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/views/studio/posts/createOrEdit.edge
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
<div x-data="{ videoTypeId: {{ post?.videoTypeId }} }">
@form.input.alt({
type: 'select',
label: 'Video Source',
label: 'Video Source (being deprecated)',
help: 'Where is your video coming from?',
name: 'videoTypeId',
value: post?.videoTypeId,
Expand All @@ -218,7 +218,7 @@
<option value="{{ VideoTypes.BUNNY }}">Bunny Stream</option>
@end

<div x-show="videoTypeId == {{ VideoTypes.BUNNY }}" x-data="{
<div x-data="{
showEmbed: {{ !!post?.videoBunnyId }},
videoId: '{{ post?.videoBunnyId }}',
onBlur({ detail }) {
Expand Down Expand Up @@ -258,9 +258,9 @@
@end
</div>

<div x-show="videoTypeId == {{ VideoTypes.YOUTUBE }}">
<div>
@form.input.alt({
label: 'Video URL',
label: 'YouTube Video URL',
name: 'videoUrl',
help: 'Add a YouTube video url to feature a video',
placeholder: 'Example: https://www.youtube.com/watch?v=kfSGzUcddjU',
Expand Down

0 comments on commit 42ba2ef

Please sign in to comment.