mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 08:16:57 +00:00
refactor: overwrite the default shared useRoles with a wrapped composable which injects currentSource from the component context
This commit is contained in:
@@ -4,7 +4,7 @@ import { storeToRefs } from 'pinia'
|
||||
import { toRef } from '@vue/reactivity'
|
||||
import { resolveComponent } from '@vue/runtime-core'
|
||||
import { ref } from 'vue'
|
||||
import {useRolesWrapper} from "~/composables/useRoles";
|
||||
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
@@ -20,7 +20,7 @@ const emit = defineEmits<{
|
||||
openTableCreateDialog: () => void
|
||||
}>()
|
||||
|
||||
const { isUIAllowed } = useRolesWrapper()
|
||||
const { isUIAllowed } = useRoles()
|
||||
|
||||
const base = toRef(props, 'base')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user