Skip to content

Commit

Permalink
fixed view item from DomainActionsMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Nov 18, 2016
1 parent a9e087a commit e9160e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/menus/DomainActionsMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function items()
'target' => '_blank',
],
],
[
'view' => [
'label' => '<i class="fa fa-fw fa-info"></i> ' . Yii::t('hipanel', 'View'),
'url' => ['@domain/view', 'id' => $this->model->id],
'encode' => false,
Expand Down
6 changes: 5 additions & 1 deletion src/menus/DomainDetailsMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function items()
'model' => $this->model,
])->items();

return array_merge($actions, [
$items = array_merge($actions, [
[
'label' => AjaxModal::widget([
'id' => 'push-modal-link',
Expand Down Expand Up @@ -56,5 +56,9 @@ public function items()
],
],
]);

unset($items['view']);

return $items;
}
}

0 comments on commit e9160e8

Please sign in to comment.