2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +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:
sahil28297 2018-09-20 16:23:18 +05:30 committed by Faris Ansari
parent f1600c049f
commit 231b36a51b
3 changed files with 5 additions and 5 deletions

View File

@ -58,4 +58,4 @@ module.exports = {
$child.classList.add(activeClass);
}
}
}

View File

@ -67,10 +67,6 @@ export default {
disabled = true;
}
if (this.docfield.formula && this.docfield.fieldtype !== 'Table') {
disabled = true;
}
return Boolean(disabled);
}
}

View File

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