mirror of
https://github.com/frappe/books.git
synced 2025-01-24 15:48:25 +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;
|
disabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.docfield.formula && this.docfield.fieldtype !== 'Table') {
|
|
||||||
disabled = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return Boolean(disabled);
|
return Boolean(disabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,10 @@ export default {
|
|||||||
columns = this.reportColumns;
|
columns = this.reportColumns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for(let column of columns) {
|
||||||
|
column.editable = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.datatable) {
|
if (this.datatable) {
|
||||||
this.datatable.refresh(rows, columns);
|
this.datatable.refresh(rows, columns);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user