mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-04 17:47:06 +00:00
fix: hide dropdown styling in public shared grid view
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -346,6 +346,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
isRequired(_columnObj, rowObj) {
|
||||
if (this.isPublicView) { return false }
|
||||
|
||||
let columnObj = _columnObj
|
||||
if (columnObj.bt) {
|
||||
columnObj = this.meta.columns.find(c => c.cn === columnObj.bt.cn)
|
||||
@@ -504,13 +506,14 @@ export default {
|
||||
}
|
||||
},
|
||||
enableEditable(column) {
|
||||
return (column && column.uidt === 'Attachment') ||
|
||||
return ((column && column.uidt === 'Attachment') ||
|
||||
(column && column.uidt === 'SingleSelect') ||
|
||||
(column && column.uidt === 'MultiSelect') ||
|
||||
(column && column.uidt === 'DateTime') ||
|
||||
(column && column.uidt === 'Date') ||
|
||||
(column && column.uidt === 'Time') ||
|
||||
(this.sqlUi && this.sqlUi.getAbstractType(column) === 'boolean')
|
||||
)
|
||||
},
|
||||
insertNewRow(atEnd = false, expand = false) {
|
||||
this.$emit('insertNewRow', atEnd, expand)
|
||||
|
||||
Reference in New Issue
Block a user