Browse Source

fix: 'Create View' button appearing through sharing link of Base #9055 (#9058)

pull/9067/head
Jonathan Chen 4 months ago committed by GitHub
parent
commit
4a5548bc62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      packages/nc-gui/components/dashboard/TreeView/ViewsList.vue

5
packages/nc-gui/components/dashboard/TreeView/ViewsList.vue

@ -32,6 +32,8 @@ const { isUIAllowed } = useRoles()
const { isMobileMode } = useGlobal() const { isMobileMode } = useGlobal()
const { isSharedBase } = storeToRefs(useBase())
const { $e } = useNuxtApp() const { $e } = useNuxtApp()
const { t } = useI18n() const { t } = useI18n()
@ -400,6 +402,7 @@ function onOpenModal({
:selected-keys="selected" :selected-keys="selected"
class="nc-views-menu flex flex-col w-full !border-r-0 !bg-inherit" class="nc-views-menu flex flex-col w-full !border-r-0 !bg-inherit"
> >
<template v-if="!isSharedBase">
<DashboardTreeViewCreateViewBtn <DashboardTreeViewCreateViewBtn
v-if="isUIAllowed('viewCreateOrEdit')" v-if="isUIAllowed('viewCreateOrEdit')"
:align-left-level="isDefaultSource ? 1 : 2" :align-left-level="isDefaultSource ? 1 : 2"
@ -429,7 +432,7 @@ function onOpenModal({
</div> </div>
</div> </div>
</DashboardTreeViewCreateViewBtn> </DashboardTreeViewCreateViewBtn>
</template>
<template v-if="views.length"> <template v-if="views.length">
<DashboardTreeViewViewsNode <DashboardTreeViewViewsNode
v-for="view of views" v-for="view of views"

Loading…
Cancel
Save