mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
show worldlabs login
This commit is contained in:
1 parent
436495547f
commit
af96e51bf1
2 files changed
+7
-1
No files matched your search
@@ -4,4 +4,5 @@ export enum GenerationProvider {
|
||||
Fal = "fal",
|
||||
Midjourney = "midjourney",
|
||||
Sora = "sora",
|
||||
WorldLabs = "world_labs",
|
||||
}
|
||||
@@ -44,8 +44,11 @@ export function ProviderSetupModal({
|
||||
|
||||
const buttonOnClick = async () => {
|
||||
switch (provider) {
|
||||
case GenerationProvider.WorldLabs:
|
||||
await invoke("worldlabs_open_login_command");
|
||||
break;
|
||||
case GenerationProvider.Grok:
|
||||
await invoke("grok_open_login_command"); // TODO: Rename in Tauri
|
||||
await invoke("grok_open_login_command");
|
||||
break;
|
||||
case GenerationProvider.Midjourney:
|
||||
await invoke("midjourney_open_login_command");
|
||||
@@ -123,6 +126,8 @@ function getServiceProviderName(provider: GenerationProvider) : string {
|
||||
return "Midjourney";
|
||||
case GenerationProvider.Sora:
|
||||
return "Sora";
|
||||
case GenerationProvider.WorldLabs:
|
||||
return "WorldLabs";
|
||||
case GenerationProvider.Artcraft:
|
||||
default:
|
||||
return "Artcraft";
|
||||
|
||||
Reference in new issue
Block a user