aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/forms/Form.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classes/forms/Form.php')
-rw-r--r--lib/classes/forms/Form.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/classes/forms/Form.php b/lib/classes/forms/Form.php
index 58fe47a..576ea43 100644
--- a/lib/classes/forms/Form.php
+++ b/lib/classes/forms/Form.php
@@ -502,6 +502,9 @@ class Form extends Part
public function render(string|Template $layout = null)
{
\NotificationCenter::postNotification('FormWillRender', $this);
+ if (\Request::isDialog()) {
+ header('X-No-Buttons: 1');
+ }
return $this->getTemplate()->render([], $layout);
}