Notification icon hidden if none

This commit is contained in:
Roman Hergenreder 2020-07-15 23:17:57 +02:00
parent 4f9a9e063a
commit 5254f3488b
3 changed files with 3 additions and 3 deletions

2
js/admin.min.js vendored

File diff suppressed because one or more lines are too long

@ -5,7 +5,7 @@ export default function Footer() {
return ( return (
<footer className={"main-footer"}> <footer className={"main-footer"}>
Theme: <strong>Copyright © 2014-2019 <a href={"http://adminlte.io"}>AdminLTE.io</a>. <b>Version</b> 3.0.3</strong>&nbsp; Theme: <strong>Copyright © 2014-2019 <a href={"http://adminlte.io"}>AdminLTE.io</a>. <b>Version</b> 3.0.3</strong>&nbsp;
CMS: <strong><a href={"https://git.romanh.de/Projekte/web-base"}>WebBase</a></strong>. <b>Version</b> 1.0.1 CMS: <strong><a href={"https://git.romanh.de/Projekte/web-base"}>WebBase</a></strong>. <b>Version</b> 1.0.2
</footer> </footer>
) )
} }

@ -83,7 +83,7 @@ export default function Header(props) {
<li className={"nav-item dropdown"} onClick={() => showDropdown(!dropdownVisible)}> <li className={"nav-item dropdown"} onClick={() => showDropdown(!dropdownVisible)}>
<a href={"#"} className={"nav-link"} data-toggle={"dropdown"}> <a href={"#"} className={"nav-link"} data-toggle={"dropdown"}>
<Icon icon={"bell"} type={"far"} /> <Icon icon={"bell"} type={"far"} />
<span className={"badge badge-warning navbar-badge"}> <span className={"badge badge-warning navbar-badge"} style={{display: (notificationCount > 0 ? "block" : "none")}}>
{notificationCount} {notificationCount}
</span> </span>
</a> </a>