From 3a0a20d59cdae7f166325efb750eaa6e9800ba6e Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Tue, 1 Feb 2022 16:08:55 +0000 Subject: [PATCH] fix(install): set message block on forms to show error messages fixes #157 --- app/Views/Components/Alert.php | 2 ++ themes/cp_install/_layout.php | 2 +- themes/cp_install/_message_block.php | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 themes/cp_install/_message_block.php diff --git a/app/Views/Components/Alert.php b/app/Views/Components/Alert.php index 41cf3bc5..9cf30075 100644 --- a/app/Views/Components/Alert.php +++ b/app/Views/Components/Alert.php @@ -30,6 +30,8 @@ class Alert extends Component $title = $this->title === null ? '' : '
' . $this->title . '
'; $class = 'inline-flex w-full p-2 text-sm border rounded ' . $variantClasses[$this->variant] . ' ' . $this->class; + unset($this->attributes['slot']); + unset($this->attributes['variant']); $attributes = stringify_attributes($this->attributes); return <<
- + renderSection('content') ?>