Skip to content

Commit 32bf556

Browse files
committed
Add map route when appropriate
1 parent 99a4aac commit 32bf556

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web-app/packages/lib/src/modules/project/views/ProjectViewTemplate.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)