File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed
Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 2323 "url" : " git+https://github.com/opencor/webapp.git"
2424 },
2525 "type" : " module" ,
26- "version" : " 0.20251223.1 " ,
26+ "version" : " 0.20251223.2 " ,
2727 "scripts" : {
2828 "archive:web" : " bun src/renderer/scripts/archive.web.js" ,
2929 "build" : " electron-vite build" ,
Original file line number Diff line number Diff line change 3939 },
4040 "./style.css" : " ./dist/opencor.css"
4141 },
42- "version" : " 0.20251223.1 " ,
42+ "version" : " 0.20251223.2 " ,
4343 "scripts" : {
4444 "build" : " vite build" ,
4545 "build:lib" : " vite build --config vite.lib.config.ts && cp index.d.ts dist/index.d.ts" ,
Original file line number Diff line number Diff line change 7676 v-model:visible =" resetAllVisible"
7777 title =" Reset All..."
7878 question =" You are about to reset all of your settings. Do you want to proceed?"
79+ severity =" danger"
7980 @yes =" onResetAll"
8081 @no =" resetAllVisible = false"
8182 />
Original file line number Diff line number Diff line change 44 {{ question }}
55 </div >
66 <template #footer >
7- <Button autofocus label =" Yes" severity =" danger " @click =" $emit('yes')" />
7+ <Button autofocus label =" Yes" : severity =" severity " @click =" $emit('yes')" />
88 <Button label =" No" severity =" secondary" @click =" $emit('no')" />
99 </template >
1010 </BaseDialog >
@@ -15,8 +15,14 @@ defineEmits<{
1515 (event : ' yes' ): void ;
1616 (event : ' no' ): void ;
1717}>();
18- defineProps <{
19- title: string ;
20- question: string ;
21- }>();
18+ withDefaults (
19+ defineProps <{
20+ title: string ;
21+ question: string ;
22+ severity? : ' danger' | ' warning' | ' info' ;
23+ }>(),
24+ {
25+ severity: ' warning'
26+ }
27+ );
2228 </script >
You can’t perform that action at this time.
0 commit comments