File tree Expand file tree Collapse file tree 3 files changed +36
-9
lines changed Expand file tree Collapse file tree 3 files changed +36
-9
lines changed Original file line number Diff line number Diff line change 1+ <template >
2+ <div class =" flex flex-col gap-3 h-full" >
3+ <div class =" flex text-xs" >
4+ <div >{{ t('apiNodesCostBreakdown.title') }}</div >
5+ </div >
6+ <ScrollPanel class =" flex-grow h-0" >
7+ <div class =" flex flex-col gap-2" >
8+ <div
9+ v-for =" nodeName in nodeNames"
10+ :key =" nodeName"
11+ class =" flex items-center justify-between px-3 py-2 rounded-md bg-[var(--p-content-border-color)]"
12+ >
13+ <div class =" flex items-center gap-2" >
14+ <span class =" text-base font-medium leading-tight" >{{
15+ nodeName
16+ }}</span >
17+ </div >
18+ </div >
19+ </div >
20+ </ScrollPanel >
21+ </div >
22+ </template >
23+
24+ <script setup lang="ts">
25+ import ScrollPanel from ' primevue/scrollpanel'
26+ import { useI18n } from ' vue-i18n'
27+
28+ const { t } = useI18n ()
29+
30+ const { nodeNames } = defineProps <{ nodeNames: string [] }>()
31+ </script >
Original file line number Diff line number Diff line change 99 {{ t('apiNodesSignInDialog.message') }}
1010 </div >
1111
12- <ApiNodesCostBreakdown :nodes = " apiNodes " :show-total = " true " />
12+ <ApiNodesList :node-names = " apiNodeNames " />
1313
1414 <div class =" flex justify-between items-center" >
1515 <Button :label =" t('g.learnMore')" link />
3030import Button from ' primevue/button'
3131import { useI18n } from ' vue-i18n'
3232
33- import ApiNodesCostBreakdown from ' @/components/common/ApiNodesCostBreakdown.vue'
34- import type { ApiNodeCost } from ' @/types/apiNodeTypes'
35-
3633const { t } = useI18n ()
3734
38- const { apiNodes , onLogin, onCancel } = defineProps <{
39- apiNodes : ApiNodeCost []
35+ const { apiNodeNames , onLogin, onCancel } = defineProps <{
36+ apiNodeNames : string []
4037 onLogin? : () => void
4138 onCancel? : () => void
4239}>()
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import TemplateWorkflowsDialogHeader from '@/components/templates/TemplateWorkfl
1919import { t } from '@/i18n'
2020import type { ExecutionErrorWsMessage } from '@/schemas/apiSchema'
2121import { type ShowDialogOptions , useDialogStore } from '@/stores/dialogStore'
22- import { ApiNodeCost } from '@/types/apiNodeTypes'
2322import { ManagerTab } from '@/types/comfyManagerTypes'
2423
2524export type ConfirmationDialogType =
@@ -225,14 +224,14 @@ export const useDialogService = () => {
225224 * @returns Promise that resolves to true if user clicks login, false if cancelled
226225 */
227226 async function showApiNodesSignInDialog (
228- apiNodes : ApiNodeCost [ ]
227+ apiNodeNames : string [ ]
229228 ) : Promise < boolean > {
230229 return new Promise < boolean > ( ( resolve ) => {
231230 dialogStore . showDialog ( {
232231 key : 'api-nodes-signin' ,
233232 component : ApiNodesSignInContent ,
234233 props : {
235- apiNodes ,
234+ apiNodeNames ,
236235 onLogin : ( ) => showSignInDialog ( ) . then ( ( result ) => resolve ( result ) ) ,
237236 onCancel : ( ) => resolve ( false )
238237 } ,
You can’t perform that action at this time.
0 commit comments