Fix drawai reveal (#152)

This commit is contained in:
HCode authored and GitHub committed 2024-11-15 14:48:32 +08:00
1 parent d6c4465f2d
commit ba0101d6ce
3 files changed
+24 -10

No files matched your search

+16 -10
View File
@@ -14,15 +14,7 @@
<p v-if="modelValue?.request?.template" class="prompt mt-2">
{{ modelValue?.request?.template }}
<span v-if="!modelValue?.response"> - ({{ $t('headshots.status.pending') }}) </span>
<!-- <span
v-if="
modelValue?.response?.data?.state === 'processing' ||
modelValue?.response?.data?.state === 'pending' ||
modelValue?.response?.data?.state === 'completed'
"
>
- ({{ $t('headshots.status.processing') }})
</span> -->
<span v-if="modelValue?.response?.status === 'unknown'"> - ({{ $t('headshots.status.processing') }}) </span>
</p>
</div>
<!-- Display success message -->
@@ -81,6 +73,20 @@
</p>
</el-alert>
</div>
<div v-if="modelValue?.response?.status === 'unknown'" :class="{ content: true }">
<el-alert :closable="false" class="info">
<template #template>
<font-awesome-icon icon="fa-solid fa-exclamation-triangle" class="mr-1" />
{{ $t('headshots.name.failure') }}
</template>
<p class="description">
<font-awesome-icon icon="fa-solid fa-magic" class="mr-1" />
{{ $t('headshots.name.taskId') }}:
{{ modelValue?.id }}
<copy-to-clipboard :content="modelValue?.id!" class="btn-copy" />
</p>
</el-alert>
</div>
</div>
</div>
</template>
@@ -163,7 +169,7 @@ $left-width: 70px;
.left {
width: $left-width;
.avatar {
background-color: rgb(0, 0, 0);
background-color: rgb(64, 119, 188);
padding: 2px;
width: 50px;
height: 50px;
+1
View File
@@ -23,6 +23,7 @@ export interface IHeadshotsPicture {
export interface IHeadshotsGenerateResponse {
success?: boolean;
status?: string;
task_id: string;
trace_id: string;
error?: {