Skip to content

Commit

Permalink
V3 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rabol committed Sep 25, 2023
1 parent 1de2246 commit 59cb22e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Pages/LogViewerViewDetailsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ public static function getRoutes(): Closure
};
}

public function mount(string $recordId = null, string $fileName = null): void
public function mount(): void
{
$recordId = request()->query('recordId');
$fileName = request()->query('fileName');

$this->recordId = $recordId;
$this->fileName = $fileName;

Expand Down
4 changes: 3 additions & 1 deletion src/Pages/LogViewerViewLogPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ public static function getRoutes(): Closure
};
}

public function mount($fileName): void
public function mount(): void
{
$fileName = request()->query('fileName');

$this->log = LogReader::filename($fileName);
$this->logEntries = $this->log->get(); // we need to paginate...
self::$title = 'Log file: '.$fileName;
Expand Down

0 comments on commit 59cb22e

Please sign in to comment.