Skip to content

Commit

Permalink
fix: fetch timeBalance when hours changed
Browse files Browse the repository at this point in the history
  • Loading branch information
neferin12 committed Aug 30, 2024
1 parent 4ed7248 commit a616cba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/views/WorkingHours.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<custom-spinner v-else />
</div>

<HoursEntryModal v-model:visible="modalVisible" @on-submit="fetchHours" />
<HoursEntryModal v-model:visible="modalVisible" @on-submit="() =>{fetchHours(); fetchTimeBalance()}" />
<b-modal
@ok="deleteHours"
ref="deleteHoursModal"
Expand Down Expand Up @@ -182,6 +182,7 @@ async function deleteHours() {
.then(() => {
deleteHoursId.value = null;
fetchHours();
fetchTimeBalance();
});
}
Expand Down

0 comments on commit a616cba

Please sign in to comment.