Browse Source

Merge pull request #2476 from nocodb/feat/view-import

feat: support secondary view import
pull/2490/head
mertmit 3 years ago committed by GitHub
parent
commit
152f0fe1f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      packages/nc-gui/components/import/ImportFromAirtable.vue

20
packages/nc-gui/components/import/ImportFromAirtable.vue

@ -8,7 +8,6 @@
<div <div
v-t="['c:airtable-import:turbo-mode']" v-t="['c:airtable-import:turbo-mode']"
class="ml-2 mt-3 title pointer nc-btn-enable-turbo" class="ml-2 mt-3 title pointer nc-btn-enable-turbo"
@click="enableTurbo"
> >
🚀 🚀
</div> </div>
@ -86,6 +85,13 @@
hide-details hide-details
dense dense
/> />
<v-checkbox
v-model="syncSource.details.options.syncViews"
class="caption"
label="Import Secondary Views"
hide-details
dense
/>
<v-checkbox <v-checkbox
v-model="syncSource.details.options.syncRollup" v-model="syncSource.details.options.syncRollup"
class="caption" class="caption"
@ -225,7 +231,7 @@ export default {
apiKey: '', apiKey: '',
shareId: '', shareId: '',
options: { options: {
syncViews: false, syncViews: true,
syncData: true, syncData: true,
syncRollup: false, syncRollup: false,
syncLookup: true, syncLookup: true,
@ -327,7 +333,7 @@ export default {
apiKey: '', apiKey: '',
shareId: '', shareId: '',
options: { options: {
syncViews: false, syncViews: true,
syncData: true, syncData: true,
syncRollup: false, syncRollup: false,
syncLookup: true, syncLookup: true,
@ -350,10 +356,10 @@ export default {
this.$toast.error(await this._extractSdkResponseErrorMsg(e)).goAway(3000) this.$toast.error(await this._extractSdkResponseErrorMsg(e)).goAway(3000)
} }
}, },
enableTurbo() { // enableTurbo() {
this.$set(this.syncSource.details.options, 'syncViews', true) // this.$set(this.syncSource.details.options, 'syncViews', true)
this.$toast.success('🚀🚀 Ludicrous mode activated! Let\'s go! 🚀🚀').goAway(3000) // this.$toast.success('🚀🚀 Ludicrous mode activated! Let\'s go! 🚀🚀').goAway(3000)
}, // },
migrateSync(src) { migrateSync(src) {
if (!src.details?.options) { if (!src.details?.options) {
src.details.options = { src.details.options = {

Loading…
Cancel
Save