Skip to content
Snippets Groups Projects
Verified Commit 6648141f authored by Martin Weise's avatar Martin Weise
Browse files

Updated the primary key composite

parent 80b2841c
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -152,7 +152,6 @@ ...@@ -152,7 +152,6 @@
<v-checkbox <v-checkbox
v-model="c.unique" v-model="c.unique"
:disabled="disabled || c.type === 'serial'" :disabled="disabled || c.type === 'serial'"
:hidden="c.primary_key"
:label="$t('pages.table.subpages.schema.unique.label')" /> :label="$t('pages.table.subpages.schema.unique.label')" />
</v-col> </v-col>
<v-col <v-col
...@@ -250,6 +249,9 @@ export default { ...@@ -250,6 +249,9 @@ export default {
return this.$vuetify.theme.global.name.toLowerCase().endsWith('contrast') ? runtimeConfig.public.variant.button.contrast : runtimeConfig.public.variant.button.normal return this.$vuetify.theme.global.name.toLowerCase().endsWith('contrast') ? runtimeConfig.public.variant.button.contrast : runtimeConfig.public.variant.button.normal
}, },
showPrimaryKeyWarning () { showPrimaryKeyWarning () {
if (this.disabled) {
return false
}
return this.columns.filter(c => c.primary_key).length === 0 return this.columns.filter(c => c.primary_key).length === 0
} }
}, },
......
...@@ -155,12 +155,11 @@ ...@@ -155,12 +155,11 @@
</v-stepper-header> </v-stepper-header>
<v-stepper-window <v-stepper-window
direction="vertical"> direction="vertical">
<v-container <v-container>
v-if="step >= 4">
<TableSchema <TableSchema
ref="schema" ref="schema"
:back="false" :back="false"
:disabled="step > 4" :disabled="step !== 4"
:loading="loading" :loading="loading"
:submit-text="$t('navigation.continue')" :submit-text="$t('navigation.continue')"
:columns="tableCreate.columns" :columns="tableCreate.columns"
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment