Skip to content

Commit

Permalink
Make Modal::hasForm() true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
giuscris committed Oct 19, 2024
1 parent 514d426 commit aafbc01
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion formwork/src/Panel/Modals/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function buttons(): ModalButtonCollection

public function hasForm(): bool
{
return $this->data['form'] ?? false;
return $this->data['form'] ?? true;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions panel/modals/changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ title: '{{panel.pages.changes.detected}}'

message: '{{panel.pages.changes.detected.prompt}}'

form: false

buttons:
dismiss:
action: dismiss
Expand Down
2 changes: 2 additions & 0 deletions panel/modals/images.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
title: '{{panel.modal.images.title}}'

form: false

size: large

fields:
Expand Down
2 changes: 2 additions & 0 deletions panel/modals/slug.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
title: '{{panel.pages.changeSlug}}'

form: false

fields:
newSlug:
type: text
Expand Down

0 comments on commit aafbc01

Please sign in to comment.