Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Реализован нативный механизм View для итема в секции. #1197

Open
wants to merge 4 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Правки
  • Loading branch information
ProtasovM committed May 19, 2020
commit b95ad663b8446045560e9c9f2dda5df0b65c3ccc
1 change: 0 additions & 1 deletion src/Http/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
'uses' => 'AdminController@getView',
]);


$router->get('{adminModel}/create', [
'as' => 'model.create',
'uses' => 'AdminController@getCreate',
Expand Down
3 changes: 2 additions & 1 deletion src/Model/ModelConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ protected function getDefaultClassTitle()
*/
public function isViewable()
{
return ( $this->can('view', $this->getModel() ) and $this->view ) ? true : false;
return ($this->can('view', $this->getModel() ) and $this->view) ? true : false;
}

/**
Expand All @@ -727,6 +727,7 @@ public function getViewPath()
public function setViewPath($path)
{
$this->view = $path;

return $this;
}

Expand Down
1 change: 0 additions & 1 deletion src/Model/SectionModelConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ public function getPayload()
public function setPayload($payload = [])
{
$this->payload = $payload;

return $this;
}
}