Skip to content

Commit

Permalink
Merge pull request #117 from ConductionNL/feature/PC108-130/new-activ…
Browse files Browse the repository at this point in the history
…e-tab

feature/PC108-130/new-active-tab
  • Loading branch information
remko48 authored Dec 18, 2024
2 parents 24d18be + 19839a0 commit cda0a93
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/modals/contactMomenten/ContactMomentenForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ export default {
}
this.tabs.push(index)
this.tabCounter = this.tabCounter + 1
this.selectedContactMoment = index
},
async fetchData(id) {
Expand Down Expand Up @@ -770,7 +771,13 @@ export default {
addContactMoment(i) {
this.selectedContactMoment = i
this.contactMoment = this.contactMomenten[i]
this.contactMoment = {
...this.contactMoment,
...this.contactMomenten[i],
id: this.contactMoment.id,
startDate: this.contactMoment.startDate,
}
this.loading = true
Expand All @@ -782,6 +789,10 @@ export default {
delete contactMomentCopy.klantContactmomenten
delete contactMomentCopy.auditTrails
delete contactMomentCopy.addedTaken
delete contactMomentCopy.selectedKlantContactMoment
delete contactMomentCopy.selectedProduct
delete contactMomentCopy.selectedTaak
delete contactMomentCopy.selectedZaak
contactMomentStore.saveContactMoment({
...contactMomentCopy,
Expand Down

0 comments on commit cda0a93

Please sign in to comment.