mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 01:50:08 +00:00
Backport of #8508 to `cloud/1.38`
Automatically created by manual backport (cherry-pick of
c5431de123).
Conflicts resolved:
-
`src/platform/cloud/subscription/composables/useSubscriptionCredits.test.ts`
— accepted PR version (uses `useBillingContext` mock instead of
pinia/firebase auth)
- `src/services/dialogService.ts` — merged: kept cloud/1.38 eager
imports for dialog components, replaced `TopUpCreditsDialogContent` with
Legacy/Workspace variants, replaced `useSubscription` with
`useBillingContext`, added workspace/legacy component selection in
`showTopUpCreditsDialog`; skipped lazy loader refactor (separate PR, not
part of #8508)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
914 B
Vue
31 lines
914 B
Vue
<template>
|
|
<div
|
|
class="flex flex-col justify-between gap-10 p-4 border-t border-border-default w-auto max-w-[min(500px,90vw)]"
|
|
>
|
|
<UploadModelUpgradeModalBody />
|
|
|
|
<UploadModelUpgradeModalFooter
|
|
@close="handleClose"
|
|
@subscribe="handleSubscribe"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useBillingContext } from '@/composables/billing/useBillingContext'
|
|
import UploadModelUpgradeModalBody from '@/platform/assets/components/UploadModelUpgradeModalBody.vue'
|
|
import UploadModelUpgradeModalFooter from '@/platform/assets/components/UploadModelUpgradeModalFooter.vue'
|
|
import { useDialogStore } from '@/stores/dialogStore'
|
|
|
|
const dialogStore = useDialogStore()
|
|
const { showSubscriptionDialog } = useBillingContext()
|
|
|
|
function handleClose() {
|
|
dialogStore.closeDialog({ key: 'upload-model-upgrade' })
|
|
}
|
|
|
|
function handleSubscribe() {
|
|
showSubscriptionDialog()
|
|
}
|
|
</script>
|