Browse Source

feat(gui-v2): watch syncSourceUrlOrId logic

pull/2795/head
Wing-Kam Wong 2 years ago
parent
commit
160aed1fda
  1. 7
      packages/nc-gui-v2/components/dlg/AirtableImport.vue

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

@ -146,7 +146,12 @@ function migrateSync(src: any) {
return src
}
// TODO: watch syncSourceUrlOrId
watch(syncSourceUrlOrId, (v) => {
if (syncSource.value.details) {
const m = v && v.match(/(exp|shr).{14}/g)
syncSource.value.details.shareId = m ? m[0] : ''
}
})
onMounted(() => {
// TODO: handle base url

Loading…
Cancel
Save