# HG changeset patch # User Markus Kottlaender # Date 1551080147 -3600 # Node ID c28971cd70ce573249bb5e5729002bd3354657a4 # Parent 99274fed6f3d9c665beefe79397400f01cd4aea4 client: indicator for imports waiting for review The main menu button and the staging area menu item now show an indicator for open imports diff -r 99274fed6f3d -r c28971cd70ce client/src/components/Sidebar.vue --- a/client/src/components/Sidebar.vue Fri Feb 22 18:02:23 2019 +0100 +++ b/client/src/components/Sidebar.vue Mon Feb 25 08:35:47 2019 +0100 @@ -1,143 +1,151 @@ @@ -166,6 +174,7 @@ computed: { ...mapGetters("user", ["isSysAdmin", "isWaterwayAdmin"]), ...mapState("user", ["user"]), + ...mapState("imports", ["staging"]), ...mapState("application", [ "showSidebar", "showSearchbarLastState", @@ -213,12 +222,32 @@ color: #666; } +.indicator { + font-size: 11px; + line-height: 11px; + padding: 2px 4px 1px; + position: absolute; + top: 18px; + left: 0px; + z-index: 10; + color: #fff; + background: #17a2b8; + border-top-right-radius: 0.25rem; + border-bottom-left-radius: 0.25rem; +} + .menu a { display: block; text-align: left; padding: 0.5rem 1rem; color: #333; text-decoration: none; + .indicator { + left: auto; + right: 10px; + top: 10px; + border-radius: 0.25rem; + } } .menu a svg path {