Skip to content

Commit

Permalink
Merge pull request #344 from esac-ic/fix-vue
Browse files Browse the repository at this point in the history
Fix vue zekeringen after model change
  • Loading branch information
wouterbles authored Oct 3, 2023
2 parents 6a65b1d + f6e2cd3 commit db15f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/assets/vue/zekeringen/components/Zekering.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<p class="card-text">
...{{zekering.text}}
</p>
<sub-zekering v-for="subzekering in zekering.childZekeringen" :key="subzekering.id" :zekering="subzekering"/>
<sub-zekering v-for="subzekering in zekering.children" :key="subzekering.id" :zekering="subzekering"/>
<div class="form-row ml-4" v-if="showForm">
<div class="col-6 form-group">
<input type="text" class="form-control" id="subZekering" v-model="subZekering" placeholder="...Sub-zekering">
Expand Down Expand Up @@ -71,7 +71,7 @@
}
},
mounted(){
this.canAddSubzekering = this.zekering.childZekeringen.length < 4 && LOGDIN === "1";
this.canAddSubzekering = this.zekering.children.length < 4 && LOGDIN === "1";
this.canDelete = ADMIN === "1";
}
}
Expand Down

0 comments on commit db15f5e

Please sign in to comment.