Skip to content

Commit

Permalink
Merge pull request #6027 from getkirby/fix/6024-rename-files-slug
Browse files Browse the repository at this point in the history
Fix slug field in file rename dialog
  • Loading branch information
bastianallgeier authored Nov 30, 2023
2 parents 40eae8e + f9fd133 commit 76c29ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/areas/files/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
'type' => 'slug',
'required' => true,
'icon' => 'title',
'allow' => '@._-',
'allow' => 'a-z0-9@._-',
'after' => '.' . $file->extension(),
'preselect' => true
]
Expand Down
12 changes: 6 additions & 6 deletions panel/lab/components/fields/slug/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<k-lab-field-examples type="slug">
<k-lab-example label="Wizard">
<k-slug-field
:formData="formData"
:form-data="formData"
:value="value"
:wizard="wizard"
label="Slug"
Expand All @@ -16,21 +16,21 @@
export default {
data() {
return {
value: null,
value: null
};
},
computed: {
formData() {
return {
title: "This is a custom slug",
title: "This is a custom slug"
};
},
wizard() {
return {
text: "Create slug",
field: "title",
field: "title"
};
},
},
}
}
};
</script>

0 comments on commit 76c29ff

Please sign in to comment.