Skip to content

A free open source IT asset/license management system

removed hiding the notifications icon

Godfrey Me3a2397b745d
diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php
index 26a39fb889..47b0fd2c4f 100644
--- a/resources/views/layouts/default.blade.php
+++ b/resources/views/layouts/default.blade.php
@@ -268,14 +268,16 @@ dir="{{ Helper::determineLanguageDirection() }}">
@can('admin')
<!-- Tasks: style can be found in dropdown.less -->
<?php $alert_items = ($snipeSettings->show_alerts_in_menu=='1') ? Helper::checkLowInventory() : [];
- $deprecations = Helper::deprecationCheck()?>
+ $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>
- <span class="label label-danger">{{ count($alert_items) + count($deprecations) }}</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')
@@ -322,7 +324,6 @@ dir="{{ Helper::determineLanguageDirection() }}">
</li> --}}
</ul>
</li>
- @endif
@endcan