mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
Make datatable non-editable in Report and formula field selectable (#85)
* making the datatable fields non editable and making the field selectable that uses formula * Revised the datatable selectable property * Update index.vue
This commit is contained in:
parent
f1600c049f
commit
231b36a51b
@ -67,10 +67,6 @@ export default {
|
||||
disabled = true;
|
||||
}
|
||||
|
||||
if (this.docfield.formula && this.docfield.fieldtype !== 'Table') {
|
||||
disabled = true;
|
||||
}
|
||||
|
||||
return Boolean(disabled);
|
||||
}
|
||||
}
|
||||
|
@ -53,6 +53,10 @@ export default {
|
||||
columns = this.reportColumns;
|
||||
}
|
||||
|
||||
for(let column of columns) {
|
||||
column.editable = false;
|
||||
}
|
||||
|
||||
if (this.datatable) {
|
||||
this.datatable.refresh(rows, columns);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user