Browse Source

fix: in shared view pass metadata with all required column to grid view

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1668/head
Pranav C 3 years ago
parent
commit
2de128a131
  1. 8
      packages/nc-gui/components/project/spreadsheet/public/xcTable.vue
  2. 2
      scripts/sdk/swagger.json

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

@ -72,7 +72,7 @@
<xc-grid-view
v-else
is-public-view
:meta="meta"
:meta="tableMeta"
:metas="metas"
:data="data"
:available-columns="availableColumns"
@ -225,7 +225,8 @@ export default {
icon: 'mdi-card'
}],
rowContextMenu: null,
modelName: null
modelName: null,
tableMeta: null
}),
computed: {
concatenatedXWhere() {
@ -393,7 +394,8 @@ export default {
'xc-password': this.password
}
}))
this.meta = this.viewMeta.model
this.tableMeta = this.viewMeta.model
this.meta = { ...this.viewMeta.model }
this.meta.columns = this.meta.columns.filter(c => c.show)
this.metas = this.viewMeta.relatedMetas
this.showSystemFields = this.viewMeta.show_system_fields

2
scripts/sdk/swagger.json

@ -4006,7 +4006,7 @@
}
}
},
"/api/v1/db/meta/tables/{tableId}/hooks/samplePayload/{operation}": {
"/api/v1/db/meta/tables/{tableId}/hooks/samplePayload/{operation}"0: {
"parameters": [
{
"schema": {

Loading…
Cancel
Save