Browse Source

Update Message page

Visman 3 năm trước cách đây
mục cha
commit
c3ed4bf56a
1 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 6 4
      app/Models/Pages/Message.php

+ 6 - 4
app/Models/Pages/Message.php

@@ -20,10 +20,12 @@ class Message extends Page
      */
      */
     public function message(/* string|array */ $message, bool $back = true, int $status = 400, array $headers = []): Page
     public function message(/* string|array */ $message, bool $back = true, int $status = 400, array $headers = []): Page
     {
     {
-        $this->nameTpl    = 'message';
-        $this->httpStatus = \max(200, $status);
-        $this->titles     = 'Info';
-        $this->back       = $back;
+        $this->nameTpl      = 'message';
+        $this->onlinePos    = 'info-' . $status;
+        $this->onlineDetail = null;
+        $this->httpStatus   = \max(200, $status);
+        $this->titles       = 'Info';
+        $this->back         = $back;
 
 
         if (! empty($headers)) {
         if (! empty($headers)) {
             foreach ($headers as $header) {
             foreach ($headers as $header) {