Browse Source

refactor(gui-v2): add loadTables

pull/2795/head
Wing-Kam Wong 2 years ago
parent
commit
4a52552f56
  1. 16
      packages/nc-gui-v2/components/dlg/AirtableImport.vue

16
packages/nc-gui-v2/components/dlg/AirtableImport.vue

@ -169,9 +169,10 @@ onMounted(() => {
console.log('socket connected', data) console.log('socket connected', data)
}) })
socket.value.on('progress', (d: Record<string, any>) => { socket.value.on('progress', async (d: Record<string, any>) => {
progress.value.push(d) progress.value.push(d)
// TODO: check if it still requires
// nextTick(() => { // nextTick(() => {
// if ($refs.log) { // if ($refs.log) {
// const el = $refs.log.$el; // const el = $refs.log.$el;
@ -180,17 +181,8 @@ onMounted(() => {
// }); // });
if (d.status === 'COMPLETED') { if (d.status === 'COMPLETED') {
// $store await loadTables()
// .dispatch('project/_loadTables', { // TODO: add tab of the first table
// dbKey: '0.projectJson.envs._noco.db.0',
// key: '0.projectJson.envs._noco.db.0.tables',
// _nodes: {
// dbAlias: 'db',
// env: '_noco',
// type: 'tableDir',
// },
// })
// .then(() => this.$store.dispatch('tabs/loadFirstTableTab'));
} }
}) })
loadSyncSrc() loadSyncSrc()

Loading…
Cancel
Save