mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 19:11:29 +00:00
link to source video (mod only)
This commit is contained in:
1 parent
8824f188da
commit
a2302a49f4
2 files changed
+20
No files matched your search
@@ -35,10 +35,15 @@ export interface MediaFile {
|
||||
},
|
||||
maybe_cover_image_public_bucket_path: string | null
|
||||
};
|
||||
maybe_moderator_fields?: MediaFileModeratorFields;
|
||||
created_at: Date;
|
||||
updated_at: Date;
|
||||
}
|
||||
|
||||
export interface MediaFileModeratorFields {
|
||||
maybe_style_transfer_source_media_file_token?: string;
|
||||
}
|
||||
|
||||
export interface GetMediaRequest {}
|
||||
|
||||
export interface GetMediaResponse {
|
||||
|
||||
@@ -75,6 +75,7 @@ export default function MediaPage() {
|
||||
mediaFile?.maybe_creator_user?.user_token || ""
|
||||
);
|
||||
|
||||
const isModerator = canBanUsers() || false;
|
||||
const viewerCanMakeFeatured = canBanUsers() || false;
|
||||
|
||||
// Inside MediaPage.tsx
|
||||
@@ -251,6 +252,20 @@ export default function MediaPage() {
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
{isModerator && mediaFile?.maybe_moderator_fields?.maybe_style_transfer_source_media_file_token && (
|
||||
<>
|
||||
<div className="d-flex gap-3 align-items-center mb-2 mt-3">
|
||||
<h6 className="fw-semibold mb-0 flex-grow-1">Source Video</h6>
|
||||
</div>
|
||||
<div className="panel-inner p-2 rounded">
|
||||
<p className="fs-7">
|
||||
<Link
|
||||
to={`/media/${mediaFile?.maybe_moderator_fields?.maybe_style_transfer_source_media_file_token}`}
|
||||
>Link to source (staff only)</Link>
|
||||
</p>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</Panel>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user