Line data Source code
1 : <template>
2 : <div
3 0 : v-if="reconnecting"
4 : role="status"
5 : class="fixed inset-0 z-blocking flex flex-col items-center justify-center gap-4 bg-background p-8 text-center"
6 : >
7 : <h1 class="m-0 text-lg font-semibold">
8 : {{ $t('auth.webSession.reconnecting.title') }}
9 : </h1>
10 : <p class="m-0 max-w-md text-muted-foreground">
11 : {{ $t('auth.webSession.reconnecting.detail') }}
12 : </p>
13 : <Button @click="retry">
14 : {{ $t('auth.webSession.reconnecting.retry') }}
15 : </Button>
16 : </div>
17 : </template>
18 :
19 : <script setup lang="ts">
20 : import { storeToRefs } from 'pinia'
21 :
22 : import Button from '@comfyorg/design-system/button/Button'
23 : import { useCloudWebSessionStore } from '@/platform/auth/session/cloudWebSessionStore'
24 :
25 0 : const { reconnecting } = storeToRefs(useCloudWebSessionStore())
26 :
27 0 : function retry() {
28 0 : window.location.reload()
29 : }
30 : </script>
|