Browse Source

fix: use aliases instead of table/column names on tooltips

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/1881/head
mertmit 2 years ago
parent
commit
385d47498e
  1. 12
      packages/nc-gui/components/project/spreadsheet/components/virtualHeaderCell.vue

12
packages/nc-gui/components/project/spreadsheet/components/virtualHeaderCell.vue

@ -202,20 +202,20 @@ export default {
return ''
},
childTable() {
if (this.relationMeta?.table_name) {
return this.relationMeta.table_name
if (this.relationMeta?.title) {
return this.relationMeta.title
}
return ''
},
parentTable() {
if (this.rels.includes(this.type)) {
return this.meta.table_name
return this.meta.title
}
return ''
},
parentColumn() {
if (this.rels.includes(this.type)) {
return this.column.column_name
return this.column.title
}
return ''
},
@ -230,11 +230,11 @@ export default {
} else if (this.type === 'bt') {
return `'${this.column.title}' belongs to '${this.childTable}'`
} else if (this.type === 'lk') {
return `'${this.childColumn.column_name}' from '${this.childTable}' (${this.childColumn.uidt})`
return `'${this.childColumn.title}' from '${this.childTable}' (${this.childColumn.uidt})`
} else if (this.type === 'formula') {
return `Formula - ${this.column.colOptions.formula}`
} else if (this.type === 'rl') {
return `'${this.childColumn.column_name}' of '${this.childTable}' (${this.childColumn.uidt})`
return `'${this.childColumn.title}' of '${this.childTable}' (${this.childColumn.uidt})`
}
return ''
}

Loading…
Cancel
Save