Skip to content

Commit

Permalink
Merge pull request #6796 from getkirby/v5/changes/fix-form-controls-p…
Browse files Browse the repository at this point in the history
…review-type

FormControls: fix error for preview prop type
  • Loading branch information
bastianallgeier authored Nov 15, 2024
2 parents 8fef235 + d7e37fc commit d84d341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion panel/src/components/Forms/FormControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
/**
* Preview URL for changes
*/
preview: String
preview: [String, Boolean]
},
emits: ["discard", "submit"],
computed: {
Expand Down
2 changes: 1 addition & 1 deletion panel/src/components/Views/Pages/SiteView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
:is-locked="isLocked"
:is-unsaved="isUnsaved"
:modified="modified"
:preview="permissions.preview ? api + '/preview/compare' : false"
:preview="api + '/preview/compare'"
@discard="onDiscard"
@submit="onSubmit"
/>
Expand Down

0 comments on commit d84d341

Please sign in to comment.