|
|
@ -68,6 +68,12 @@ function openTableCreateDialog(baseIndex?: number | undefined) { |
|
|
|
close(1000) |
|
|
|
close(1000) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onCreateBaseClick = () => { |
|
|
|
|
|
|
|
if (isDataSourceLimitReached.value) return |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isNewBaseModalOpen.value = true |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -75,6 +81,7 @@ function openTableCreateDialog(baseIndex?: number | undefined) { |
|
|
|
<div class="flex flex-row gap-x-6 pb-3 pt-6"> |
|
|
|
<div class="flex flex-row gap-x-6 pb-3 pt-6"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-if="isUIAllowed('tableCreate')" |
|
|
|
v-if="isUIAllowed('tableCreate')" |
|
|
|
|
|
|
|
role="button" |
|
|
|
class="nc-project-view-all-table-btn" |
|
|
|
class="nc-project-view-all-table-btn" |
|
|
|
data-testid="proj-view-btn__add-new-table" |
|
|
|
data-testid="proj-view-btn__add-new-table" |
|
|
|
@click="openTableCreateDialog()" |
|
|
|
@click="openTableCreateDialog()" |
|
|
@ -84,6 +91,7 @@ function openTableCreateDialog(baseIndex?: number | undefined) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-if="isUIAllowed('tableCreate')" |
|
|
|
v-if="isUIAllowed('tableCreate')" |
|
|
|
|
|
|
|
role="button" |
|
|
|
class="nc-project-view-all-table-btn" |
|
|
|
class="nc-project-view-all-table-btn" |
|
|
|
data-testid="proj-view-btn__import-data" |
|
|
|
data-testid="proj-view-btn__import-data" |
|
|
|
@click="isImportModalOpen = true" |
|
|
|
@click="isImportModalOpen = true" |
|
|
@ -98,12 +106,13 @@ function openTableCreateDialog(baseIndex?: number | undefined) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<div |
|
|
|
<div |
|
|
|
|
|
|
|
role="button" |
|
|
|
class="nc-project-view-all-table-btn" |
|
|
|
class="nc-project-view-all-table-btn" |
|
|
|
data-testid="proj-view-btn__import-data" |
|
|
|
data-testid="proj-view-btn__create-source" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
|
disabled: isDataSourceLimitReached, |
|
|
|
disabled: isDataSourceLimitReached, |
|
|
|
}" |
|
|
|
}" |
|
|
|
@click="isNewBaseModalOpen = true" |
|
|
|
@click="onCreateBaseClick" |
|
|
|
> |
|
|
|
> |
|
|
|
<GeneralIcon icon="dataSource" /> |
|
|
|
<GeneralIcon icon="dataSource" /> |
|
|
|
<div class="label">{{ $t('labels.connectDataSource') }}</div> |
|
|
|
<div class="label">{{ $t('labels.connectDataSource') }}</div> |
|
|
|