Skip to content

Commit

Permalink
chore: support version v5.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvroroy committed Feb 26, 2025
1 parent 695b509 commit d7de050
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/mixins/DependentFormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {
*/
fillIfVisible(formData, attribute, value) {
if (this.currentlyIsVisible) {
formData.append(attribute, value)
this.fillInto(formData, attribute, value)
}
},

Expand Down
13 changes: 12 additions & 1 deletion resources/js/mixins/FormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ export default {
this.fillIfVisible(formData, this.fieldAttribute, String(this.value))
},

/**
* Provide a function to fills FormData when field.
*
* @param {FormData} formData
* @param {string} attribute
* @param {any} value
*/
fillInto(formData, attribute, value) {
formData.append(attribute, value)
},

/**
* Provide a function to fills FormData when field is visible.
*
Expand All @@ -84,7 +95,7 @@ export default {
*/
fillIfVisible(formData, attribute, value) {
if (this.isVisible) {
formData.append(attribute, value)
this.fillInto(formData, attribute, value)
}
},

Expand Down
2 changes: 1 addition & 1 deletion resources/js/views/Attach.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@

<Button
v-if="canShowNewRelationModal"
ariant="link"
variant="link"
size="small"
leading-icon="plus-circle"
@click="openRelationModal"
Expand Down
2 changes: 1 addition & 1 deletion resources/js/views/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export default {
this.resourceResponse = data
this.resources = data.resources
this.softDeletes = data.softDeletes
this.perPage = data.per_page
this.perPage = data.perPage
this.sortable = data.sortable
this.handleResourcesLoaded()
Expand Down
2 changes: 1 addition & 1 deletion resources/js/views/Lens.vue
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export default {
this.resourceResponse = data
this.resources = data.resources
this.softDeletes = data.softDeletes
this.perPage = data.per_page
this.perPage = data.perPage
this.resourceHasId = Boolean(data.hasId)
this.handleResourcesLoaded()
Expand Down

0 comments on commit d7de050

Please sign in to comment.