diff --git a/src/components/common/ApiNodesList.vue b/src/components/common/ApiNodesList.vue
new file mode 100644
index 000000000..38d89607b
--- /dev/null
+++ b/src/components/common/ApiNodesList.vue
@@ -0,0 +1,31 @@
+
+
+
+
{{ t('apiNodesCostBreakdown.title') }}
+
+
+
+
+
+ {{
+ nodeName
+ }}
+
+
+
+
+
+
+
+
diff --git a/src/components/dialog/content/ApiNodesSignInContent.vue b/src/components/dialog/content/ApiNodesSignInContent.vue
index f83e11919..1d9d08358 100644
--- a/src/components/dialog/content/ApiNodesSignInContent.vue
+++ b/src/components/dialog/content/ApiNodesSignInContent.vue
@@ -9,7 +9,7 @@
{{ t('apiNodesSignInDialog.message') }}
-
+
@@ -30,13 +30,10 @@
import Button from 'primevue/button'
import { useI18n } from 'vue-i18n'
-import ApiNodesCostBreakdown from '@/components/common/ApiNodesCostBreakdown.vue'
-import type { ApiNodeCost } from '@/types/apiNodeTypes'
-
const { t } = useI18n()
-const { apiNodes, onLogin, onCancel } = defineProps<{
- apiNodes: ApiNodeCost[]
+const { apiNodeNames, onLogin, onCancel } = defineProps<{
+ apiNodeNames: string[]
onLogin?: () => void
onCancel?: () => void
}>()
diff --git a/src/services/dialogService.ts b/src/services/dialogService.ts
index acd6bb869..03d327058 100644
--- a/src/services/dialogService.ts
+++ b/src/services/dialogService.ts
@@ -19,7 +19,6 @@ import TemplateWorkflowsDialogHeader from '@/components/templates/TemplateWorkfl
import { t } from '@/i18n'
import type { ExecutionErrorWsMessage } from '@/schemas/apiSchema'
import { type ShowDialogOptions, useDialogStore } from '@/stores/dialogStore'
-import { ApiNodeCost } from '@/types/apiNodeTypes'
import { ManagerTab } from '@/types/comfyManagerTypes'
export type ConfirmationDialogType =
@@ -225,14 +224,14 @@ export const useDialogService = () => {
* @returns Promise that resolves to true if user clicks login, false if cancelled
*/
async function showApiNodesSignInDialog(
- apiNodes: ApiNodeCost[]
+ apiNodeNames: string[]
): Promise {
return new Promise((resolve) => {
dialogStore.showDialog({
key: 'api-nodes-signin',
component: ApiNodesSignInContent,
props: {
- apiNodes,
+ apiNodeNames,
onLogin: () => showSignInDialog().then((result) => resolve(result)),
onCancel: () => resolve(false)
},