|
|
@ -523,7 +523,7 @@ const projectDelete = () => { |
|
|
|
</NcMenuItem> |
|
|
|
</NcMenuItem> |
|
|
|
|
|
|
|
|
|
|
|
<!-- ERD View --> |
|
|
|
<!-- ERD View --> |
|
|
|
<NcMenuItem key="erd" data-testid="nc-sidebar-base-relations" @click="openErdView(base?.sources?.[0]!)"> |
|
|
|
<NcMenuItem v-if="base?.sources?.[0]?.enabled" key="erd" data-testid="nc-sidebar-base-relations" @click="openErdView(base?.sources?.[0]!)"> |
|
|
|
<div v-e="['c:base:erd']" class="flex gap-2 items-center"> |
|
|
|
<div v-e="['c:base:erd']" class="flex gap-2 items-center"> |
|
|
|
<GeneralIcon icon="erd" /> |
|
|
|
<GeneralIcon icon="erd" /> |
|
|
|
{{ $t('title.relations') }} |
|
|
|
{{ $t('title.relations') }} |
|
|
@ -549,7 +549,7 @@ const projectDelete = () => { |
|
|
|
</NcMenuItem> |
|
|
|
</NcMenuItem> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="base.sources && base.sources[0] && showBaseOption"> |
|
|
|
<template v-if="base?.sources?.[0]?.enabled && showBaseOption"> |
|
|
|
<NcDivider /> |
|
|
|
<NcDivider /> |
|
|
|
<DashboardTreeViewBaseOptions v-model:base="base" :source="base.sources[0]" /> |
|
|
|
<DashboardTreeViewBaseOptions v-model:base="base" :source="base.sources[0]" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -584,6 +584,7 @@ const projectDelete = () => { |
|
|
|
</NcDropdown> |
|
|
|
</NcDropdown> |
|
|
|
|
|
|
|
|
|
|
|
<NcButton |
|
|
|
<NcButton |
|
|
|
|
|
|
|
:disabled="!base?.sources?.[0]?.enabled" |
|
|
|
v-if="isUIAllowed('tableCreate', { roles: baseRole })" |
|
|
|
v-if="isUIAllowed('tableCreate', { roles: baseRole })" |
|
|
|
v-e="['c:base:create-table']" |
|
|
|
v-e="['c:base:create-table']" |
|
|
|
class="nc-sidebar-node-btn" |
|
|
|
class="nc-sidebar-node-btn" |
|
|
|