File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed
Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1010 <slot name =" title" />
1111 </h2 >
1212 </div >
13- <button
14- class =" cursor-pointer rounded border-none bg-transparent p-0 text-muted-foreground transition-colors hover:text-base-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-secondary-foreground"
13+ <Button
14+ variant =" muted-textonly"
15+ class =" -mr-1"
1516 :aria-label =" $t('g.close')"
1617 @click =" $emit('close')"
1718 >
1819 <i class =" pi pi-times size-4" />
19- </button >
20+ </Button >
2021 </div >
2122
2223 <!-- Body -->
3233</template >
3334
3435<script setup lang="ts">
36+ import Button from ' @/components/ui/button/Button.vue'
37+
3538defineEmits <{
3639 close: []
3740}>()
Original file line number Diff line number Diff line change 2525 {{ $t('builderToolbar.saveAsLabel') }}
2626 </label >
2727 <div role =" radiogroup" class =" flex flex-col gap-2" >
28- <button
28+ <Button
2929 v-for =" option in saveTypeOptions"
3030 :key =" option.value.toString()"
3131 role =" radio"
3636 openAsApp === option.value && 'bg-secondary-background'
3737 )
3838 "
39+ variant =" textonly"
3940 @click =" openAsApp = option.value"
4041 >
4142 <div
5556 v-if =" openAsApp === option.value"
5657 class =" icon-[lucide--check] size-4 text-base-foreground"
5758 />
58- </button >
59+ </Button >
5960 </div >
6061 </div >
6162
Original file line number Diff line number Diff line change @@ -57,14 +57,19 @@ export function useBuilderSave() {
5757 props : {
5858 defaultFilename,
5959 onSave : handleSave ,
60- onClose : closeSaveDialog
60+ onClose : handleCancelSave
6161 } ,
6262 dialogComponentProps : {
6363 onClose : resetSaving
6464 }
6565 } )
6666 }
6767
68+ function handleCancelSave ( ) {
69+ closeSaveDialog ( )
70+ resetSaving ( )
71+ }
72+
6873 async function handleSave ( filename : string , openAsApp : boolean ) {
6974 try {
7075 const workflow = workflowStore . activeWorkflow
You can’t perform that action at this time.
0 commit comments