Skip to content

Commit

Permalink
fixed: delete modal when item closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasser Lahbibi committed Jan 14, 2019
1 parent facc9b7 commit 79d8076
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

17 changes: 9 additions & 8 deletions resources/js/components/NestedFormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@
:is="`form-${getComponent(subfield)}`" />
<!-- ACTUAL FIELDS -->

<!-- DELETION MODAL -->
<DeleteModal :resourceSingularName="field.singularLabel"
@submit="remove"
@close="showDeleteModal = false"
v-if="showDeleteModal" />
<!-- DELETION MODAL -->
</div>

<!-- DELETION MODAL -->
<DeleteModal :resourceSingularName="field.singularLabel"
@submit="remove"
@close="showDeleteModal = false"
v-if="showDeleteModal" />
<!-- DELETION MODAL -->

</div>
</template>

Expand Down Expand Up @@ -121,7 +122,7 @@ export default {
methods: {
/**
* This toggles the visibility of the
* This toggles the visibility of the
* content of the related resource
*/
toggleVisibility() {
Expand Down Expand Up @@ -178,4 +179,4 @@ export default {
this.child.fill = this.fill
}
}
</script>
</script>

0 comments on commit 79d8076

Please sign in to comment.