Line data Source code
1 16 : <template>
2 38 : <div class="flex w-full max-w-[420px] flex-col border-t">
3 : <div class="flex flex-col gap-4 p-4">
4 : <p class="m-0 text-sm text-muted-foreground">
5 : {{ $t('g.keybindingPresets.unsavedChangesMessage') }}
6 : </p>
7 : <div class="flex justify-end gap-2">
8 : <Button variant="muted-textonly" @click="onResult(null)">
9 : {{ $t('g.cancel') }}
10 : </Button>
11 : <Button variant="secondary" @click="onResult(false)">
12 : {{ $t('g.keybindingPresets.discardAndSwitch') }}
13 : </Button>
14 : <Button
15 : variant="secondary"
16 : class="bg-foreground text-background"
17 : @click="onResult(true)"
18 : >
19 : {{ $t('g.keybindingPresets.saveAndSwitch') }}
20 : </Button>
21 : </div>
22 : </div>
23 : </div>
24 : </template>
25 :
26 : <script setup lang="ts">
27 : import Button from '@comfyorg/design-system/button/Button'
28 :
29 : const { onResult } = defineProps<{
30 : onResult: (result: boolean | null) => void
31 : }>()
32 : </script>
|