Browse Source

Notification icon hidden if none

Roman Hergenreder 3 years ago
parent
commit
5254f3488b
3 changed files with 2 additions and 2 deletions
  1. 0 0
      js/admin.min.js
  2. 1 1
      src/src/footer.js
  3. 1 1
      src/src/header.js

File diff suppressed because it is too large
+ 0 - 0
js/admin.min.js


+ 1 - 1
src/src/footer.js

@@ -5,7 +5,7 @@ export default function Footer() {
     return (
         <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;
-            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>
     )
 }

+ 1 - 1
src/src/header.js

@@ -83,7 +83,7 @@ export default function Header(props) {
                 <li className={"nav-item dropdown"} onClick={() => showDropdown(!dropdownVisible)}>
                     <a href={"#"} className={"nav-link"} data-toggle={"dropdown"}>
                         <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}
                         </span>
                     </a>

Some files were not shown because too many files changed in this diff