Skip to content

Commit 1caa240

Browse files
authored
Cleaning up.
2 parents c4334b8 + f0854bc commit 1caa240

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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",

src/renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
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",

src/renderer/src/components/OpenCOR.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
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
/>

src/renderer/src/components/dialogs/YesNoQuestionDialog.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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>

0 commit comments

Comments
 (0)