diff --git a/crates/desktop/artcraft/src/core/commands/enqueue/object/enqueue_image_to_3d_object_command.rs b/crates/desktop/artcraft/src/core/commands/enqueue/object/enqueue_image_to_3d_object_command.rs index d62c84fafa..eab5e57614 100644 --- a/crates/desktop/artcraft/src/core/commands/enqueue/object/enqueue_image_to_3d_object_command.rs +++ b/crates/desktop/artcraft/src/core/commands/enqueue/object/enqueue_image_to_3d_object_command.rs @@ -93,6 +93,8 @@ pub enum EnqueueImageTo3dObjectErrorType { NeedsFalApiKey, /// Fal had an API error FalError, + /// Needs to be logged into Artcraft + NeedsStorytellerCredentials, } #[tauri::command] @@ -136,6 +138,11 @@ pub async fn enqueue_image_to_3d_object_command( error_type = EnqueueImageTo3dObjectErrorType::NeedsFalApiKey; error_message = "You need to set a FAL api key"; }, + InternalObjectError::NeedsStorytellerCredentials => { + status = CommandErrorStatus::Unauthorized; + error_type = EnqueueImageTo3dObjectErrorType::NeedsStorytellerCredentials; + error_message = "You need to be logged into Artcraft."; + } _ => {}, // Fall-through } diff --git a/frontend/libs/components/lightbox-modal/src/lib/lightbox-modal.tsx b/frontend/libs/components/lightbox-modal/src/lib/lightbox-modal.tsx index 2e1e7d7c57..773cbaf7f7 100644 --- a/frontend/libs/components/lightbox-modal/src/lib/lightbox-modal.tsx +++ b/frontend/libs/components/lightbox-modal/src/lib/lightbox-modal.tsx @@ -5,8 +5,9 @@ import { createPortal } from "react-dom"; import dayjs from "dayjs"; import { faDownToLine } from "@fortawesome/pro-solid-svg-icons"; import { - FalKlingImageToVideo, FalHunyuanImageTo3d, + EnqueueImageTo3dObject, + EnqueueImageTo3dObjectModel, } from "@storyteller/tauri-api"; interface LightboxModalProps { @@ -129,9 +130,13 @@ export function LightboxModal({