Fix port links (#13296)

yes is not a valid boolean
This commit is contained in:
Tony Murray 2021-09-30 02:41:12 -05:00 committed by GitHub
parent 50f766476c
commit fafb5a62c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -81,7 +81,7 @@ if (isset($vars['bare']) && $vars['bare'] == 'yes') {
$displayLists .= ' | ';
$displayLists .= '<span style="font-weight: bold;">Bulk actions</span> &#187';
$displayLists .= '<a href="ports/deleted=yes/purge=all" title="Delete ports"> Purge all deleted</a>';
$displayLists .= '<a href="ports/deleted=1/purge=all" title="Delete ports"> Purge all deleted</a>';
$displayLists .= '</div>';

View File

@ -274,13 +274,13 @@
aria-hidden="true"></i> @lang('All Ports')</a></li>
@if($port_counts['errored'] > 0)
<li><a href="{{ url('ports/errors=yes') }}"><i class="fa fa-exclamation-circle fa-fw fa-lg"
<li><a href="{{ url('ports/errors=1') }}"><i class="fa fa-exclamation-circle fa-fw fa-lg"
aria-hidden="true"></i> @lang('Errored :port_count', ['port_count' => $port_counts['errored']])
</a></li>
@endif
@if($port_counts['ignored'] > 0)
<li><a href="{{ url('ports/ignore=yes') }}"><i class="fa fa-question-circle fa-fw fa-lg"
<li><a href="{{ url('ports/ignore=1') }}"><i class="fa fa-question-circle fa-fw fa-lg"
aria-hidden="true"></i> @lang('Ignored :port_count', ['port_count' => $port_counts['ignored']])
</a></li>
@endif
@ -341,7 +341,7 @@
<li role="presentation" class="divider"></li>
@if($port_counts['alerted'])
<li><a href="{{ url('ports/alerted=yes') }}"><i
<li><a href="{{ url('ports/alerted=1') }}"><i
class="fa fa-exclamation-circle fa-fw fa-lg"
aria-hidden="true"></i> @lang('Alerts :port_count', ['port_count' => $port_counts['alerted']])
</a></li>
@ -356,7 +356,7 @@
</a></li>
@if($port_counts['deleted'])
<li><a href="{{ url('ports/deleted=yes') }}"><i class="fa fa-minus-circle fa-fw fa-lg"
<li><a href="{{ url('ports/deleted=1') }}"><i class="fa fa-minus-circle fa-fw fa-lg"
aria-hidden="true"></i> @lang('Deleted :port_count', ['port_count' => $port_counts['deleted']])
</a></li>
@endif

View File

@ -1,7 +1,7 @@
<div class="container-fluid">
<div class="row">
@if(request('deleted') === 'yes')
<div class="col-xs-1"><a href="ports/deleted=yes/purge={{ $port->port_id }}" title="Delete port"><i class="fa fa-times fa-lg icon-theme"></i></a></div>
<div class="col-xs-1"><a href="ports/deleted=1/purge={{ $port->port_id }}" title="Delete port"><i class="fa fa-times fa-lg icon-theme"></i></a></div>
@else
<div class="col-xs-1"><a href="@deviceUrl($port->device, ['tab' => 'alerts'])" title="View alerts"><i class="fa fa-exclamation-circle fa-lg icon-theme" aria-hidden="true"></i></a></div>
@admin