mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 06:26:53 +00:00
fix: pass source reference where it's missing
This commit is contained in:
@@ -112,11 +112,15 @@ function openTableCreateMagicDialog(sourceId?: string) {
|
||||
close(1000)
|
||||
}
|
||||
}
|
||||
|
||||
const source = computed(() => {
|
||||
return base.value?.sources?.[props.sourceIndex]
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
v-if="isUIAllowed('tableCreate', { roles: baseRole })"
|
||||
v-if="isUIAllowed('tableCreate', { roles: baseRole, source })"
|
||||
class="group flex items-center gap-2 pl-2 pr-4.75 py-1 text-primary/70 hover:(text-primary/100) cursor-pointer select-none"
|
||||
@click="emit('openTableCreateDialog')"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user