Browse Source

fix(gui): column edit bug

disabled column edit only for sqlite

Signed-off-by: Pranav C Balan <pranavxc@gmail.com>
pull/269/head
Pranav C Balan 3 years ago
parent
commit
edd6ee44fe
  1. 10
      packages/nc-gui/components/project/spreadsheet/editColumn/editColumn.vue

10
packages/nc-gui/components/project/spreadsheet/editColumn/editColumn.vue

@ -21,9 +21,8 @@
dense outlined></v-text-field> dense outlined></v-text-field>
</v-col> </v-col>
<div :class="{ <div :class="{
editDisabled : !isEditable editDisabled :isEditDisabled
}"> }">
<v-col cols="12" v-if="relation"> <v-col cols="12" v-if="relation">
<div class="caption"> <div class="caption">
@ -270,7 +269,8 @@
</v-col> </v-col>
</template> </template>
</template> </template>
<div class="disabled-info" :class="{'d-none':isEditable}">
<div class="disabled-info" :class="{'d-none':!isEditDisabled}">
<v-alert dense type="warning" icon="info" class="caption mx-2" outlined> <v-alert dense type="warning" icon="info" class="caption mx-2" outlined>
This spreadsheet is connected to an SQLite DB.<br> This spreadsheet is connected to an SQLite DB.<br>
For production please see <a href="https://github.com/nocodb/nocodb#production-setup" For production please see <a href="https://github.com/nocodb/nocodb#production-setup"
@ -488,8 +488,8 @@ export default {
this.focusInput() this.focusInput()
}, },
computed: { computed: {
isEditable() { isEditDisabled() {
return !this.editColumn && this.sqlUi === SqliteUi; return this.editColumn && this.sqlUi === SqliteUi;
}, },
dataTypes() { dataTypes() {
return this.sqlUi.getDataTypeListForUiType(this.newColumn) return this.sqlUi.getDataTypeListForUiType(this.newColumn)

Loading…
Cancel
Save