Skip to content

Commit

Permalink
Merge pull request BadChoice#22 from alexrevo/master
Browse files Browse the repository at this point in the history
Fixed version 9.0.8 by adding the title property in the edit view
  • Loading branch information
BadChoice authored Mar 28, 2022
2 parents c17698c + 653b29f commit 86026b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Html/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public function show($id, $fullPage = false, $multiple = false)
view()->share('fullPage', $fullPage);
$object = is_numeric($id) ? $this->resource->find($id) : $id;
return view('thrust::edit', [
'title' => $this->resource->getTitle(),
'nameField' => $this->resource->nameField,
'resourceName' => $this->resourceName ? : $this->resource->name(),
'fields' => $this->getEditFields($multiple),
Expand Down
2 changes: 1 addition & 1 deletion src/resources/views/edit.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@if ($fullPage)
<h2>{{ $resource->getTitle() }}</h2>
<h2>{{ $title }}</h2>
@else
<div class="configForm">
<h2> {{ $object->{$nameField} ?? __('thrust::messages.new') }}</h2>
Expand Down

0 comments on commit 86026b5

Please sign in to comment.