feat: 무빙 포스터 YouTube 업로드 연동
This commit is contained in:
1 parent
c659f8c2f9
commit
a5b7529f17
4 files changed
+50
-14
No files matched your search
@@ -184,8 +184,8 @@ const MyContentsPage: React.FC<MyContentsPageProps> = ({ onNavigate, embedded })
|
||||
};
|
||||
|
||||
const handleUploadClick = (video: VideoListItem) => {
|
||||
// P2V 는 소셜 업로드를 지원하지 않는다(버튼도 막는다)
|
||||
if (isP2vContent(video.type)) return;
|
||||
// 롱컷(p2v_playreel)은 소셜 업로드를 지원하지 않는다(버튼도 막는다). 무빙 포스터는 지원한다.
|
||||
if (video.type === 'p2v_playreel') return;
|
||||
setUploadTargetVideo({ ...video, type: video.type });
|
||||
setUploadModalOpen(true);
|
||||
};
|
||||
@@ -334,7 +334,7 @@ const MyContentsPage: React.FC<MyContentsPageProps> = ({ onNavigate, embedded })
|
||||
<button
|
||||
className="content-download-btn"
|
||||
onClick={() => handleUploadClick(video)}
|
||||
disabled={!video.result_movie_url || isP2vContent(video.type)}
|
||||
disabled={!video.result_movie_url || video.type === 'p2v_playreel'}
|
||||
>
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" strokeWidth="1.5">
|
||||
<path d="M10 13V3M10 3l-4 4M10 3l4 4"/>
|
||||
|
||||
Reference in new issue
Block a user