mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Show poller settings even if distributed polling is disabled (#11893)
This commit is contained in:
@@ -222,6 +222,9 @@ class MenuComposer
|
|||||||
$query->isUnread($user);
|
$query->isUnread($user);
|
||||||
})->count();
|
})->count();
|
||||||
|
|
||||||
|
// Poller Settings
|
||||||
|
$vars['poller_clusters'] = \App\Models\PollerCluster::exists();
|
||||||
|
|
||||||
// Search bar
|
// Search bar
|
||||||
$vars['typeahead_limit'] = Config::get('webui.global_search_result_limit');
|
$vars['typeahead_limit'] = Config::get('webui.global_search_result_limit');
|
||||||
|
|
||||||
|
@@ -545,8 +545,10 @@
|
|||||||
<li><a href="{{ route('poller.index') }}"><i class="fa fa-th-large fa-fw fa-lg" aria-hidden="true"></i> @lang('Poller')</a></li>
|
<li><a href="{{ route('poller.index') }}"><i class="fa fa-th-large fa-fw fa-lg" aria-hidden="true"></i> @lang('Poller')</a></li>
|
||||||
@config('distributed_poller')
|
@config('distributed_poller')
|
||||||
<li><a href="{{ route('poller.groups') }}"><i class="fa fa-th fa-fw fa-lg" aria-hidden="true"></i> @lang('Groups')</a></li>
|
<li><a href="{{ route('poller.groups') }}"><i class="fa fa-th fa-fw fa-lg" aria-hidden="true"></i> @lang('Groups')</a></li>
|
||||||
<li><a href="{{ route('poller.settings') }}"><i class="fa fa-gears fa-fw fa-lg" aria-hidden="true"></i> @lang('Settings')</a></li>
|
|
||||||
@endconfig
|
@endconfig
|
||||||
|
@if($poller_clusters)
|
||||||
|
<li><a href="{{ route('poller.settings') }}"><i class="fa fa-gears fa-fw fa-lg" aria-hidden="true"></i> @lang('Settings')</a></li>
|
||||||
|
@endif
|
||||||
<li><a href="{{ route('poller.performance') }}"><i class="fa fa-line-chart fa-fw fa-lg" aria-hidden="true"></i> @lang('Performance')</a></li>
|
<li><a href="{{ route('poller.performance') }}"><i class="fa fa-line-chart fa-fw fa-lg" aria-hidden="true"></i> @lang('Performance')</a></li>
|
||||||
<li><a href="{{ route('poller.log') }}"><i class="fa fa-file-text fa-fw fa-lg" aria-hidden="true"></i> @lang('Log')</a></li>
|
<li><a href="{{ route('poller.log') }}"><i class="fa fa-file-text fa-fw fa-lg" aria-hidden="true"></i> @lang('Log')</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@@ -8,7 +8,6 @@
|
|||||||
<li role="presentation" @if( $current_tab == 'poller' ) class="active" @endif>
|
<li role="presentation" @if( $current_tab == 'poller' ) class="active" @endif>
|
||||||
<a href="{{ route('poller.index') }}"><i class="fa fa-th-large fa-lg icon-theme" aria-hidden="true"></i> @lang('Poller')</a>
|
<a href="{{ route('poller.index') }}"><i class="fa fa-th-large fa-lg icon-theme" aria-hidden="true"></i> @lang('Poller')</a>
|
||||||
</li>
|
</li>
|
||||||
@config('distributed_poller')
|
|
||||||
<li role="presentation" @if( $current_tab == 'groups' ) class="active" @endif>
|
<li role="presentation" @if( $current_tab == 'groups' ) class="active" @endif>
|
||||||
<a href="{{ route('poller.groups') }}"><i class="fa fa-th fa-lg icon-theme" aria-hidden="true"></i> @lang('Groups')</a>
|
<a href="{{ route('poller.groups') }}"><i class="fa fa-th fa-lg icon-theme" aria-hidden="true"></i> @lang('Groups')</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -17,7 +16,6 @@
|
|||||||
<a href="{{ route('poller.settings') }}"><i class="fa fa-gears fa-lg icon-theme" aria-hidden="true"></i> @lang('Settings')</a>
|
<a href="{{ route('poller.settings') }}"><i class="fa fa-gears fa-lg icon-theme" aria-hidden="true"></i> @lang('Settings')</a>
|
||||||
</li>
|
</li>
|
||||||
@endif
|
@endif
|
||||||
@endconfig
|
|
||||||
<li role="presentation" @if( $current_tab == 'performance' ) class="active" @endif>
|
<li role="presentation" @if( $current_tab == 'performance' ) class="active" @endif>
|
||||||
<a href="{{ route('poller.performance') }}"><i class="fa fa-line-chart fa-lg icon-theme" aria-hidden="true"></i> @lang('Performance')</a>
|
<a href="{{ route('poller.performance') }}"><i class="fa fa-line-chart fa-lg icon-theme" aria-hidden="true"></i> @lang('Performance')</a>
|
||||||
</li>
|
</li>
|
||||||
|
Reference in New Issue
Block a user