diff --git a/packages/nc-gui/components/project/spreadsheet/editColumn/editColumn.vue b/packages/nc-gui/components/project/spreadsheet/editColumn/editColumn.vue
index ed4b5a1f07..69f566fd37 100644
--- a/packages/nc-gui/components/project/spreadsheet/editColumn/editColumn.vue
+++ b/packages/nc-gui/components/project/spreadsheet/editColumn/editColumn.vue
@@ -22,252 +22,263 @@
+
+
+
+
+
Foreign Key
+
+
mdi-table
+
{{ relation._rtn }}
+
mdi-delete-forever
+
+
(v)
+
+
+
+
+
+
+
+ {{ item.icon }}
+ {{ item.name }}
+
+
-
-
-
-
Foreign Key
-
-
mdi-table
-
{{ relation._rtn }}
-
mdi-delete-forever
-
-
(v)
-
-
-
-
-
-
-
- {{ item.icon }}
- {{ item.name }}
-
-
+
+
+ {{ item.icon }}
+ {{ item.name }}
+
+
+
-
-
- {{ item.icon }}
- {{ item.name }}
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ NN
+
+
+
+
+ Not Null
+
+
+
+
+
+
+ PK
+
+
+
+
+ Primary Key
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
- NN
-
-
-
-
- Not Null
-
-
-
-
-
-
- PK
-
-
-
-
- Primary Key
-
-
-
-
-
-
-
- AI
-
-
-
-
- Auto Increment
-
-
-
-
-
-
-
-
- UN
-
-
-
-
- Unsigned
-
-
-
-
-
-
-
- AU
-
-
-
-
- Auto Update Timestamp
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ :disabled="sqlUi.colPropUNDisabled(newColumn) || !sqlUi.columnEditable(newColumn)"
+ class="mr-2 mt-0" dense hide-details label="AI"
+ v-model="newColumn.ai">
+
+ AI
+
+
+
+
+ Auto Increment
+
+
+
+
+
+
+
+
+ UN
+
+
+
+
+ Unsigned
+
+
+
+
+
+
+
+ AU
+
+
+
+
+ Auto Update Timestamp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
-
-
-
-
-
- {{ item }}
-
+
+
+ This spreadsheet is connected to an SQLite DB.
+ For production please see here.
+
+
+
-
-
-
-
@@ -288,6 +299,7 @@ import CustomSelectOptions from "@/components/project/spreadsheet/editColumn/cus
import RelationOptions from "@/components/project/spreadsheet/editColumn/relationOptions";
import DlgLabelSubmitCancel from "@/components/utils/dlgLabelSubmitCancel";
import LinkedToAnotherOptions from "@/components/project/spreadsheet/editColumn/linkedToAnotherOptions";
+import {SqliteUi} from "@/helpers/SqliteUi";
export default {
name: "editColumn",
@@ -476,6 +488,9 @@ export default {
this.focusInput()
},
computed: {
+ isEditable() {
+ return !this.editColumn && this.sqlUi === SqliteUi;
+ },
dataTypes() {
return this.sqlUi.getDataTypeListForUiType(this.newColumn)
},
@@ -542,4 +557,25 @@ export default {
border-radius: 4px;
}
+.editDisabled {
+ position: relative;
+
+ .disabled-info {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ top: 0;
+ bottom: 0;
+ background: var(--v-backgroundColor-base);
+ opacity: .9;
+
+ & > * {
+ opacity: 1;
+ }
+ }
+}
+
diff --git a/packages/nocodb/package-lock.json b/packages/nocodb/package-lock.json
index 63befd9722..4bc9682d7d 100644
--- a/packages/nocodb/package-lock.json
+++ b/packages/nocodb/package-lock.json
@@ -11126,9 +11126,9 @@
"integrity": "sha512-3AryS9uwa5NfISLxMciUonrH7YfXp+nlahB9T7girXIsLQrmwX4MdnuKs32akduCOGpKmjTJSWmATULbuMkbfw=="
},
"nc-help": {
- "version": "0.1.104",
- "resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.1.104.tgz",
- "integrity": "sha512-Tbn+RrRg8ELwXZtu+Lu0cunNKyB8fj7d91JAd5U2sjV3r+02PExpZ0PWT7bFwkNcEVDItQtAvzNl7uoLgchzzw==",
+ "version": "0.1.107",
+ "resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.1.107.tgz",
+ "integrity": "sha512-Lgqx9i1Oxt4WGTU+D35KyhKpwWgmHKzI7P1yPcqhsWNrLjnR7XHEumjKT1UovyJo5zkkiMCFnaxOGbWCnM9waA==",
"requires": {
"axios": "^0.21.1",
"boxen": "^4.2.0",
diff --git a/packages/nocodb/package.json b/packages/nocodb/package.json
index c7eb0513be..153f6524d8 100644
--- a/packages/nocodb/package.json
+++ b/packages/nocodb/package.json
@@ -55,6 +55,7 @@
"copy-files": "copyfiles -u 1 \"src/**/*.ejs\" build/main && copyfiles -u 1 \"src/**/*.ejs\" build/module && copyfiles -u 1 \"src/**/*.ejs\" docker",
"docker:build": "EE=\"true-xc-test\" webpack --config docker/webpack.config.js",
"docker:image:build": "docker build . -t nocodb/nocodb:latest -t nocodb/nocodb:0.9.25 --no-cache",
+ "docker:image:buildx": "docker buildx build . --platform linux/arm64 -t nocodb/nocodb:arm64 --no-cache",
"docker:image:deploy": "docker push nocodb/nocodb:latest && docker push nocodb/nocodb:0.9.25",
"docker:build:publish:image": "npm run build && npm run docker:build && npm run docker:image:build && npm run docker:image:deploy",
"docker:s3:image:build": "docker build . --file litestream/Dockerfile -t xgenecloud/xc-s3:latest -t xgenecloud/xc-s3:0.0.1 --no-cache",
@@ -140,7 +141,7 @@
"mysql2": "^2.2.5",
"nanoid": "^3.1.20",
"nc-common": "0.0.6",
- "nc-help": "^0.1.104",
+ "nc-help": "^0.1.107",
"nc-lib-gui": "^0.1.216",
"nc-plugin": "^0.1.1",
"nodemailer": "^6.4.10",