Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Fix custom slug field conflicting with Nova native slug field
Browse files Browse the repository at this point in the history
  • Loading branch information
eleriojavere committed May 11, 2021
1 parent fe043bc commit 08b417e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/js/nova-blog-dist.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions resources/nova-blog-dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import IndexMarkdownField from './markdown-field/components/IndexMarkdownField.v
import NovaBlogTool from './blog-tool/components/Tool.vue';

Nova.booting((Vue, router, store) => {
Vue.component('index-slug-field', IndexSlugField);
Vue.component('detail-slug-field', DetailSlugField);
Vue.component('form-slug-field', FormSlugField);
Vue.component('index-nova-blog-slug-field', IndexSlugField);
Vue.component('detail-nova-blog-slug-field', DetailSlugField);
Vue.component('form-nova-blog-slug-field', FormSlugField);

Vue.component('index-markdown-field', IndexMarkdownField);

Expand Down
2 changes: 1 addition & 1 deletion src/Nova/Fields/Slug.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

class Slug extends Text
{
public $component = 'slug-field';
public $component = 'nova-blog-slug-field';
}

0 comments on commit 08b417e

Please sign in to comment.