1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: disable cell editor for not editable results

This commit is contained in:
2020-10-10 16:54:00 +02:00
parent d560c384f5
commit b7c779eef6
4 changed files with 11 additions and 5 deletions

View File

@ -254,6 +254,9 @@ export default {
},
foreignKeys () {
return this.keyUsage.map(key => key.column);
},
isEditable () {
return this.fields ? !!(this.fields[0].schema && this.fields[0].table) : false;
}
},
watch: {
@ -296,6 +299,8 @@ export default {
return bufferToBase64(val);
},
editON (event, content, field) {
if (!this.isEditable) return;
const type = this.getFieldType(field);
this.originalContent = content;
this.editingType = type;