Skip to content

Commit

Permalink
Added SearchAction
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Mar 22, 2016
1 parent ce26caf commit fb94df7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/controllers/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use hipanel\actions\RenderAction;
use hipanel\actions\RenderJsonAction;
use hipanel\actions\RequestStateAction;
use hipanel\actions\SearchAction;
use hipanel\actions\SmartUpdateAction;
use hipanel\actions\ValidateFormAction;
use hipanel\actions\ViewAction;
Expand Down Expand Up @@ -64,6 +65,9 @@ public function actions()
'seller_id' => 'client.client.seller_id',
]
],
'search' => [
'class' => SearchAction::class
],
'view' => [
'class' => ViewAction::class,
'on beforePerform' => function (Event $event) {
Expand Down Expand Up @@ -168,6 +172,7 @@ public function actions()
],
'enable-vnc' => [
'class' => ViewAction::class,
'view' => '_vnc',
'data' => function ($action) {
$model = $action->getModel();
$model->checkOperable();
Expand Down

0 comments on commit fb94df7

Please sign in to comment.