Browse Source

fix(nc-gui): easter egg enabled for sqite and mysql

pull/6274/head
reenphygeorge 1 year ago
parent
commit
293c92d900
  1. 2
      docker-compose/pg/docker-compose.yml
  2. 13
      packages/nc-gui/components/smartsheet/column/AdvancedOptions.vue

2
docker-compose/pg/docker-compose.yml

@ -26,6 +26,8 @@ services:
restart: always
volumes:
- "db_data:/var/lib/postgresql/data"
ports:
- "5432:5432"
volumes:
db_data: {}
nc_data: {}

13
packages/nc-gui/components/smartsheet/column/AdvancedOptions.vue

@ -50,7 +50,7 @@ vModel.value.au = !!vModel.value.au */
<a-form-item label="NN">
<a-checkbox
v-model:checked="vModel.rqd"
:disabled="vModel.pk || !sqlUi.columnEditable(vModel)"
:disabled="vModel.pk"
class="nc-column-checkbox-NN"
@change="onAlter"
/>
@ -59,7 +59,6 @@ vModel.value.au = !!vModel.value.au */
<a-form-item label="PK">
<a-checkbox
v-model:checked="vModel.pk"
:disabled="!sqlUi.columnEditable(vModel)"
class="nc-column-checkbox-PK"
@change="onAlter"
/>
@ -68,17 +67,17 @@ vModel.value.au = !!vModel.value.au */
<a-form-item label="AI">
<a-checkbox
v-model:checked="vModel.ai"
:disabled="sqlUi.colPropUNDisabled(vModel) || !sqlUi.columnEditable(vModel)"
:disabled="sqlUi.colPropUNDisabled(vModel)"
class="nc-column-checkbox-AI"
@change="onAlter"
/>
</a-form-item>
<a-form-item label="UN" :disabled="sqlUi.colPropUNDisabled(vModel) || !sqlUi.columnEditable(vModel)" @change="onAlter">
<a-form-item label="UN" :disabled="sqlUi.colPropUNDisabled(vModel)" @change="onAlter">
<a-checkbox v-model:checked="vModel.un" class="nc-column-checkbox-UN" />
</a-form-item>
<a-form-item label="AU" :disabled="sqlUi.colPropAuDisabled(vModel) || !sqlUi.columnEditable(vModel)" @change="onAlter">
<a-form-item label="AU" :disabled="sqlUi.colPropAuDisabled(vModel)" @change="onAlter">
<a-checkbox v-model:checked="vModel.au" class="nc-column-checkbox-AU" />
</a-form-item>
</div>
@ -96,13 +95,13 @@ vModel.value.au = !!vModel.value.au */
<a-form-item v-if="!hideLength" :label="$t('labels.lengthValue')">
<a-input
v-model:value="vModel.dtxp"
:disabled="sqlUi.getDefaultLengthIsDisabled(vModel.dt) || !sqlUi.columnEditable(vModel)"
:disabled="sqlUi.getDefaultLengthIsDisabled(vModel.dt)"
@input="onAlter"
/>
</a-form-item>
<a-form-item v-if="sqlUi.showScale(vModel)" label="Scale">
<a-input v-model:value="vModel.dtxs" :disabled="!sqlUi.columnEditable(vModel)" @input="onAlter" />
<a-input v-model:value="vModel.dtxs" @input="onAlter" />
</a-form-item>
</template>

Loading…
Cancel
Save