Skip to content

Commit 1d5012e

Browse files
committed
fixed issue saving stress on the fate system.
1 parent c7fd0ff commit 1d5012e

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

src/client/components/systems/fate/stressCard.vue

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class="me-1"
2424
:value="true"
2525
:disabled="stressBox > totalPhysicalBoxes"
26-
@input="onSave"
26+
@update:model-value="onSave"
2727
>
2828
<b>{{ stressBox }}</b>
2929
</BFormCheckbox>
@@ -47,7 +47,7 @@
4747
class="me-1"
4848
:value="true"
4949
:disabled="stressBox > totalMentalBoxes"
50-
@input="onSave"
50+
@update:model-value="onSave"
5151
>
5252
<b>{{ stressBox }}</b>
5353
</BFormCheckbox>
@@ -63,27 +63,6 @@
6363
<style lang="scss" scoped>
6464
#fate-stress {
6565
min-width: 245px;
66-
67-
//.stress-table {
68-
// border: none;
69-
//
70-
// tr {
71-
// border-top: none;
72-
// border-bottom: none;
73-
//
74-
// td:first-child {
75-
// border-left: none;
76-
// }
77-
//
78-
// td:last-child {
79-
// border-right: none;
80-
// }
81-
//
82-
// td {
83-
// border-bottom: none;
84-
// }
85-
// }
86-
//}
8766
}
8867
</style>
8968

@@ -113,9 +92,9 @@
11392
const props = defineProps<Props>();
11493

11594
const emit = defineEmits<{
116-
'update:physical' : (val : FateStress) => void;
117-
'update:mental' : (val : FateStress) => void;
118-
'save' : () => void;
95+
'update:physical' : [val : FateStress];
96+
'update:mental' : [val : FateStress];
97+
'save' : [];
11998
}>();
12099

121100
//------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)