diff client/src/components/Sidebar.vue @ 1870:3050d702913a

sections and stretches: only stretches. only sysadmin.
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 17 Jan 2019 16:41:10 +0100
parents 67340ceecc5f
children 8ae7a1fba4cd
line wrap: on
line diff
--- a/client/src/components/Sidebar.vue	Thu Jan 17 16:30:49 2019 +0100
+++ b/client/src/components/Sidebar.vue	Thu Jan 17 16:41:10 2019 +0100
@@ -40,6 +40,8 @@
           ></font-awesome-icon>
           <span class="fix-trans-space" v-translate>Staging area</span>
         </a>
+      </div>
+      <div v-if="isSysAdmin">
         <a
           :class="['secondary', { active: isActive('stretches') }]"
           @click="toggleContextBox('stretches')"
@@ -54,6 +56,8 @@
             >Define sections and stretches</span
           >
         </a>
+      </div>
+      <div v-if="isWaterwayAdmin">
         <small class="text-muted pl-3"> <translate>Import</translate> </small>
         <hr class="m-0" />
         <router-link to="/importsoundingresults">