diff --git a/panel/src/components/Forms/FormControls.vue b/panel/src/components/Forms/FormControls.vue index d64a5c6eb1..98ee086fec 100644 --- a/panel/src/components/Forms/FormControls.vue +++ b/panel/src/components/Forms/FormControls.vue @@ -64,7 +64,7 @@ export default { /** * Preview URL for changes */ - preview: String + preview: [String, Boolean] }, emits: ["discard", "submit"], computed: { diff --git a/panel/src/components/Views/Pages/SiteView.vue b/panel/src/components/Views/Pages/SiteView.vue index 8527594275..235d16771e 100644 --- a/panel/src/components/Views/Pages/SiteView.vue +++ b/panel/src/components/Views/Pages/SiteView.vue @@ -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" />