Browse Source

fix: consider virtual option in LAR column creation (#1709)

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1710/head
Pranav C 3 years ago committed by GitHub
parent
commit
536c11cee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      packages/nc-gui/components/project/spreadsheet/components/editColumn/linkedToAnotherOptions.vue

15
packages/nc-gui/components/project/spreadsheet/components/editColumn/linkedToAnotherOptions.vue

@ -52,8 +52,7 @@
</v-container> </v-container>
<v-container v-show="advanceOptions" fluid class="wrapper"> <v-container v-show="advanceOptions" fluid class="wrapper">
<v-row> <v-row />
</v-row>
<template v-if="!isSQLite"> <template v-if="!isSQLite">
<v-row> <v-row>
<v-col cols="6"> <v-col cols="6">
@ -67,7 +66,7 @@
:items="onUpdateDeleteOptions" :items="onUpdateDeleteOptions"
required required
dense dense
:disabled="relation.type !== 'real'" :disabled="relation.virtual"
/> />
</v-col> </v-col>
<v-col cols="6"> <v-col cols="6">
@ -81,16 +80,15 @@
:items="onUpdateDeleteOptions" :items="onUpdateDeleteOptions"
required required
dense dense
:disabled="relation.type !== 'real'" :disabled="relation.virtual"
/> />
</v-col> </v-col>
</v-row> </v-row>
</template>
<v-row> <v-row>
<v-col> <v-col>
<v-checkbox <v-checkbox
v-model="relation.type" v-model="relation.virtual"
false-value="real"
true-value="virtual"
label="Virtual Relation" label="Virtual Relation"
:full-width="false" :full-width="false"
required required
@ -99,7 +97,6 @@
/> />
</v-col> </v-col>
</v-row> </v-row>
</template>
</v-container> </v-container>
</div> </div>
</template> </template>
@ -148,7 +145,7 @@ export default {
onDelete: 'NO ACTION', onDelete: 'NO ACTION',
onUpdate: 'NO ACTION', onUpdate: 'NO ACTION',
updateRelation: !!this.column.rtn, updateRelation: !!this.column.rtn,
relationType: 'real' virtual: this.isSQLite
} }
}, },
methods: { methods: {

Loading…
Cancel
Save