Browse Source

fix: hide csv import in sql view

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/852/head
Pranav C 3 years ago
parent
commit
3b05fcbc77
  1. 5
      packages/nc-gui/components/project/spreadsheet/components/exportImport.vue
  2. 5
      packages/nc-gui/components/project/spreadsheet/public/xcTable.vue
  3. 2
      packages/nc-gui/pages/nc/view/_id.vue

5
packages/nc-gui/components/project/spreadsheet/components/exportImport.vue

@ -39,7 +39,7 @@
</v-list-item-title>
</v-list-item>
<v-list-item
v-if="_isUIAllowed('csvImport')"
v-if="_isUIAllowed('csvImport') && !isView"
dense
@click="importModal = true"
>
@ -85,7 +85,8 @@ export default {
nodes: Object,
selectedView: Object,
publicViewId: String,
queryParams: Object
queryParams: Object,
isView: Boolean
},
data() {
return {

5
packages/nc-gui/components/project/spreadsheet/public/xcTable.vue

@ -91,7 +91,7 @@
<column-filter-menu v-model="filters" :field-list="realFieldList" />
<csv-export-import :query-params="{...queryParams, showFields}" :public-view-id="$route.params.id" :meta="meta" />
<csv-export-import :is-view="isView" :query-params="{...queryParams, showFields}" :public-view-id="$route.params.id" :meta="meta" />
<!-- <v-menu>
<template #activator="{ on, attrs }">
@ -212,7 +212,8 @@ export default {
relation: Object,
relationIdValue: [String, Number],
refTable: String,
relationPrimaryValue: [String, Number]
relationPrimaryValue: [String, Number],
isView: Boolean
},
data: () => ({
notFound: false,

2
packages/nc-gui/pages/nc/view/_id.vue

@ -1,5 +1,5 @@
<template>
<xc-table />
<xc-table is-view />
</template>
<script>

Loading…
Cancel
Save