fix: hide dropdown styling in public shared grid view

Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
Pranav C
2021-10-21 13:50:08 +05:30
parent 042c022d7c
commit 20a10cb8b7
2 changed files with 6 additions and 3 deletions

View File

@@ -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)