Line data Source code
1 : <template>
2 2355 : <AppDialogPanel
3 : body-class="flex flex-col gap-2 text-sm text-muted-foreground"
4 : data-testid="builder-empty-workflow-dialog"
5 : class="w-xl max-w-full min-w-116"
6 : >
7 : <template #title>
8 : {{ $t('builderToolbar.emptyWorkflowTitle') }}
9 : </template>
10 :
11 : <p class="m-0">
12 : {{ $t('linearMode.emptyWorkflowExplanation') }}
13 : </p>
14 : <p class="m-0">
15 : {{ $t('builderToolbar.emptyWorkflowPrompt') }}
16 : </p>
17 :
18 : <template #footer>
19 : <Button
20 : variant="muted-textonly"
21 : size="lg"
22 : data-testid="builder-empty-workflow-back"
23 : @click="$emit('backToWorkflow')"
24 : >
25 : {{ $t('linearMode.backToWorkflow') }}
26 : </Button>
27 : <Button
28 : variant="secondary"
29 : size="lg"
30 : data-testid="builder-empty-workflow-load-template"
31 : @click="$emit('loadTemplate')"
32 : >
33 : {{ $t('linearMode.loadTemplate') }}
34 : </Button>
35 : </template>
36 : </AppDialogPanel>
37 : </template>
38 :
39 : <script setup lang="ts">
40 : import Button from '@comfyorg/design-system/button/Button'
41 : import AppDialogPanel from '@/components/dialog/AppDialogPanel.vue'
42 :
43 : defineEmits<{
44 : backToWorkflow: []
45 : loadTemplate: []
46 : }>()
47 : </script>
|