Skip to content

Commit

Permalink
hidden Hdomains menu item when no domains available
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 18, 2015
1 parent 1b724f5 commit 72f6fc3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/SidebarMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ public function items()
'icon' => 'fa-database',
],
'hdomains' => [
'label' => Yii::t('app', 'Domains'),
'url' => ['/hosting/hdomain/index'],
'icon' => 'fa-globe',
'label' => Yii::t('app', 'Domains'),
'url' => ['/hosting/hdomain/index'],
'icon' => 'fa-globe',
'visible' => function () { return (bool)Yii::getAlias('@domain', false); },
]
],
],
Expand Down

0 comments on commit 72f6fc3

Please sign in to comment.