Browse Source

fix: show password dialog only when required

- upgrade nc-help (fixed primary key creation problem with whitespace)

re #937

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/948/head
Pranav C 3 years ago
parent
commit
badccd590d
  1. 2
      packages/nc-gui/components/project/spreadsheet/public/xcForm.vue
  2. 8
      packages/nc-gui/components/project/spreadsheet/public/xcTable.vue
  3. 22
      packages/nocodb/package-lock.json
  4. 2
      packages/nocodb/package.json

2
packages/nc-gui/components/project/spreadsheet/public/xcForm.vue

@ -206,6 +206,8 @@
<v-text-field
v-model="password"
dense
autocomplete="shared-form-password"
browser-autocomplete="shared-form-password"
type="password"
solo
flat

8
packages/nc-gui/components/project/spreadsheet/public/xcTable.vue

@ -168,6 +168,8 @@
<v-text-field
v-model="password"
dense
autocomplete="shared-table-password"
browser-autocomplete="shared-table-password"
type="password"
solo
flat
@ -567,7 +569,13 @@ export default {
rowMeta: {}
}))
} catch (e) {
if (e.message === 'Not found' || e.message === 'Meta not found') {
this.notFound = true
} else if (e.message === 'Invalid password') {
this.showPasswordModal = true
} else {
console.log(e)
}
}
this.loadingData = false

22
packages/nocodb/package-lock.json generated

@ -1,12 +1,12 @@
{
"name": "nocodb",
"version": "0.84.3",
"version": "0.84.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "nocodb",
"version": "0.84.3",
"version": "0.84.4",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@google-cloud/storage": "^5.7.2",
@ -66,7 +66,7 @@
"mysql2": "^2.2.5",
"nanoid": "^3.1.20",
"nc-common": "0.0.6",
"nc-help": "^0.2.24",
"nc-help": "^0.2.26",
"nc-lib-gui": "0.84.5",
"nc-plugin": "^0.1.1",
"ncp": "^2.0.0",
@ -15850,13 +15850,13 @@
}
},
"node_modules/nc-help": {
"version": "0.2.24",
"resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.24.tgz",
"integrity": "sha512-Pa/ANsusuOtGRtnINgynCzztnq3AyzSp7vkkwQbyV7fSFGQuvlO1LMT/e+WnTNAOQFKhkS6VETFlPah6aPYalQ==",
"version": "0.2.26",
"resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.26.tgz",
"integrity": "sha512-yXoL/RuRSIp4qtQMK8zORWV63d5LG7uEB0gejget+J5yEHouOdSamqx18J+QqO2Yl1iQHoz0vw/Td8kglxbKZg==",
"dependencies": {
"axios": "^0.21.1",
"boxen": "^4.2.0",
"colors": "^1.4.0",
"colors": "1.4.0",
"dayjs": "^1.8.32",
"debug": "^4.1.1",
"ejs": "^3.1.3",
@ -37147,13 +37147,13 @@
"integrity": "sha512-3AryS9uwa5NfISLxMciUonrH7YfXp+nlahB9T7girXIsLQrmwX4MdnuKs32akduCOGpKmjTJSWmATULbuMkbfw=="
},
"nc-help": {
"version": "0.2.24",
"resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.24.tgz",
"integrity": "sha512-Pa/ANsusuOtGRtnINgynCzztnq3AyzSp7vkkwQbyV7fSFGQuvlO1LMT/e+WnTNAOQFKhkS6VETFlPah6aPYalQ==",
"version": "0.2.26",
"resolved": "https://registry.npmjs.org/nc-help/-/nc-help-0.2.26.tgz",
"integrity": "sha512-yXoL/RuRSIp4qtQMK8zORWV63d5LG7uEB0gejget+J5yEHouOdSamqx18J+QqO2Yl1iQHoz0vw/Td8kglxbKZg==",
"requires": {
"axios": "^0.21.1",
"boxen": "^4.2.0",
"colors": "^1.4.0",
"colors": "1.4.0",
"dayjs": "^1.8.32",
"debug": "^4.1.1",
"ejs": "^3.1.3",

2
packages/nocodb/package.json

@ -147,7 +147,7 @@
"mysql2": "^2.2.5",
"nanoid": "^3.1.20",
"nc-common": "0.0.6",
"nc-help": "^0.2.24",
"nc-help": "^0.2.26",
"nc-lib-gui": "0.84.5",
"nc-plugin": "^0.1.1",
"ncp": "^2.0.0",

Loading…
Cancel
Save