Skip to content

A free open source IT asset/license management system

notification icon only appears when there are notifications

Godfrey M4ef161214d50
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php
index 721b636a9a..c021d74031 100644
--- a/resources/views/layouts/default.blade.php
+++ b/resources/views/layouts/default.blade.php
@@ -270,13 +270,12 @@ dir="{{ Helper::determineLanguageDirection() }}">
<?php $alert_items = ($snipeSettings->show_alerts_in_menu=='1') ? Helper::checkLowInventory() : [];
$deprecations = Helper::deprecationCheck()?>
+ @if (count($alert_items) || count($deprecations))
<li class="dropdown tasks-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<x-icon type="alerts" />
<span class="sr-only">{{ trans('general.alerts') }}</span>
- @if (count($alert_items) || count($deprecations))
<span class="label label-danger">{{ count($alert_items) + count($deprecations) }}</span>
- @endif
</a>
<ul class="dropdown-menu">
@can('superadmin')
@@ -323,6 +322,7 @@ dir="{{ Helper::determineLanguageDirection() }}">
</li> --}}
</ul>
</li>
+ @endif
@endcan