diff --git a/formwork/src/Panel/Modals/Modal.php b/formwork/src/Panel/Modals/Modal.php index 1c4ecbc9..87a243e2 100644 --- a/formwork/src/Panel/Modals/Modal.php +++ b/formwork/src/Panel/Modals/Modal.php @@ -80,7 +80,7 @@ public function buttons(): ModalButtonCollection public function hasForm(): bool { - return $this->data['form'] ?? false; + return $this->data['form'] ?? true; } /** diff --git a/panel/modals/changes.yaml b/panel/modals/changes.yaml index 604b211f..80c886bf 100644 --- a/panel/modals/changes.yaml +++ b/panel/modals/changes.yaml @@ -2,6 +2,8 @@ title: '{{panel.pages.changes.detected}}' message: '{{panel.pages.changes.detected.prompt}}' +form: false + buttons: dismiss: action: dismiss diff --git a/panel/modals/images.yaml b/panel/modals/images.yaml index a946d31b..61825e82 100644 --- a/panel/modals/images.yaml +++ b/panel/modals/images.yaml @@ -1,5 +1,7 @@ title: '{{panel.modal.images.title}}' +form: false + size: large fields: diff --git a/panel/modals/slug.yaml b/panel/modals/slug.yaml index 36ba6d4a..1d3165f2 100644 --- a/panel/modals/slug.yaml +++ b/panel/modals/slug.yaml @@ -1,5 +1,7 @@ title: '{{panel.pages.changeSlug}}' +form: false + fields: newSlug: type: text