mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 14:46:49 +00:00
feat: Enable customization in Gallery view
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -75,10 +75,10 @@ export default {
|
||||
methods: {
|
||||
async createView() {
|
||||
let showFields = null
|
||||
|
||||
let attachmentCol
|
||||
if (this.show_as === 'gallery') {
|
||||
showFields = { [this.primaryValueColumn]: true }
|
||||
const attachmentCol = this.meta.columns.find(c => c.uidt === 'Attachment')
|
||||
attachmentCol = this.meta.columns.find(c => c.uidt === 'Attachment')
|
||||
if (attachmentCol) {
|
||||
showFields[attachmentCol.cn] = true
|
||||
}
|
||||
@@ -97,6 +97,7 @@ export default {
|
||||
title: this.view_name,
|
||||
query_params: {
|
||||
showFields,
|
||||
coverImageField: attachmentCol ? attachmentCol._cn : '',
|
||||
...this.queryParams
|
||||
},
|
||||
parent_model_title: this.table,
|
||||
|
||||
Reference in New Issue
Block a user