mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
parent
c0998e18b3
commit
dad3b76d50
@ -31,14 +31,14 @@ class HostActions extends HostActionsHook
|
||||
}
|
||||
$hostname = $host->host_name;
|
||||
if (Util::hasPermission('director/inspect')) {
|
||||
$actions['Inspect'] = Url::fromPath(
|
||||
$actions[mt('director', 'Inspect')] = Url::fromPath(
|
||||
'director/inspect/object',
|
||||
array('type' => 'host', 'plural' => 'hosts', 'name' => $hostname)
|
||||
);
|
||||
}
|
||||
|
||||
if (Util::hasPermission('director/hosts') && IcingaHost::exists($hostname, $db)) {
|
||||
$actions['Modify'] = Url::fromPath(
|
||||
$actions[mt('director', 'Modify')] = Url::fromPath(
|
||||
'director/host/edit',
|
||||
array('name' => $hostname)
|
||||
);
|
||||
|
@ -37,7 +37,7 @@ class ServiceActions extends ServiceActionsHook
|
||||
|
||||
$hostname = $service->host_name;
|
||||
if (Util::hasPermission('director/inspect')) {
|
||||
$actions['Inspect'] = Url::fromPath('director/inspect/object', [
|
||||
$actions[mt('director', 'Inspect')] = Url::fromPath('director/inspect/object', [
|
||||
'type' => 'service',
|
||||
'plural' => 'services',
|
||||
'name' => sprintf(
|
||||
|
Loading…
x
Reference in New Issue
Block a user