src/menus/RequestDetailMenu.php 1 location
|
@@ 13-25 (lines=13) @@
|
| 10 |
|
|
| 11 |
|
namespace hipanel\modules\hosting\menus; |
| 12 |
|
|
| 13 |
|
class RequestDetailMenu extends \hipanel\menus\AbstractDetailMenu |
| 14 |
|
{ |
| 15 |
|
public $model; |
| 16 |
|
|
| 17 |
|
public function items() |
| 18 |
|
{ |
| 19 |
|
$actions = RequestActionsMenu::create(['model' => $this->model])->items(); |
| 20 |
|
$items = array_merge($actions, []); |
| 21 |
|
unlink($items['view']); |
| 22 |
|
|
| 23 |
|
return $items; |
| 24 |
|
} |
| 25 |
|
} |
| 26 |
|
|
src/menus/ServiceDetailMenu.php 1 location
|
@@ 13-25 (lines=13) @@
|
| 10 |
|
|
| 11 |
|
namespace hipanel\modules\hosting\menus; |
| 12 |
|
|
| 13 |
|
class ServiceDetailMenu extends \hipanel\menus\AbstractDetailMenu |
| 14 |
|
{ |
| 15 |
|
public $model; |
| 16 |
|
|
| 17 |
|
public function items() |
| 18 |
|
{ |
| 19 |
|
$actions = ServiceActionsMenu::create(['model' => $this->model])->items(); |
| 20 |
|
$items = array_merge($actions, []); |
| 21 |
|
unset($items['view']); |
| 22 |
|
|
| 23 |
|
return $items; |
| 24 |
|
} |
| 25 |
|
} |
| 26 |
|
|