File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
web-app/packages/lib/src/modules/project/views Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ export default defineComponent({
150150 namespace: String ,
151151 projectName: String ,
152152 showSettings: Boolean as PropType <boolean >,
153+ showMap: Boolean as PropType <boolean >,
153154 showHistory: { type: Boolean as PropType <boolean >, default: true },
154155 hideCloneButton: {
155156 type: Boolean ,
@@ -180,8 +181,8 @@ export default defineComponent({
180181 ]
181182
182183 if (this .loggedUser ) {
183- // If map in slots, add route to map tab
184- if (this .$slots [' map.tab' ]) {
184+ // If map in slots and user is project member , add route to map tab
185+ if (this .$slots [' map.tab' ] && this . showMap ) {
185186 tabs .push ({
186187 route: this .mapRoute
187188 })
You can’t perform that action at this time.
0 commit comments