Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 42ba2ef

Browse files
committed
displaying both bunny video id and youtube url fields so we can start filling in both to conditionally display based on access level
1 parent 717725c commit 42ba2ef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resources/views/studio/posts/createOrEdit.edge

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
<div x-data="{ videoTypeId: {{ post?.videoTypeId }} }">
208208
@form.input.alt({
209209
type: 'select',
210-
label: 'Video Source',
210+
label: 'Video Source (being deprecated)',
211211
help: 'Where is your video coming from?',
212212
name: 'videoTypeId',
213213
value: post?.videoTypeId,
@@ -218,7 +218,7 @@
218218
<option value="{{ VideoTypes.BUNNY }}">Bunny Stream</option>
219219
@end
220220

221-
<div x-show="videoTypeId == {{ VideoTypes.BUNNY }}" x-data="{
221+
<div x-data="{
222222
showEmbed: {{ !!post?.videoBunnyId }},
223223
videoId: '{{ post?.videoBunnyId }}',
224224
onBlur({ detail }) {
@@ -258,9 +258,9 @@
258258
@end
259259
</div>
260260

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

0 commit comments

Comments
 (0)