Skip to content

Commit

Permalink
[5.x] Use Statamic.$slug helper instead of $slugify (#10018)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Varga <[email protected]>
  • Loading branch information
duncanmcclean and jasonvarga authored May 8, 2024
1 parent 91f6611 commit 48f3faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/js/components/blueprints/Section.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default {
editConfirmed() {
if (! this.editingSection.handle) {
this.editingSection.handle = this.$slugify(this.editingSection.display, '_');
this.editingSection.handle = snake_case(this.editingSection.display)
}
this.$emit('updated', {...this.section, ...this.editingSection});
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/blueprints/Tab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default {
editConfirmed() {
if (! this.handle) {
this.handle = this.$slugify(this.display, '_');
this.handle = snake_case(this.display)
}
this.$emit('updated', {
Expand Down

0 comments on commit 48f3faf

Please sign in to comment.