diff --git a/packages/nc-gui/components/cell/MultiSelect.vue b/packages/nc-gui/components/cell/MultiSelect.vue index fee5afe43a..b3bc690052 100644 --- a/packages/nc-gui/components/cell/MultiSelect.vue +++ b/packages/nc-gui/components/cell/MultiSelect.vue @@ -5,7 +5,7 @@ import type { Select as AntSelect } from 'ant-design-vue' import type { SelectOptionType, SelectOptionsType } from 'nocodb-sdk' import type { FormFieldsLimitOptionsType } from '~/lib/types' import MdiCloseCircle from '~icons/mdi/close-circle' -import {useRolesWrapper} from "~/composables/useRoles"; + interface Props { modelValue?: string | string[] @@ -58,7 +58,7 @@ const { $api } = useNuxtApp() const { getMeta } = useMetas() -const { isUIAllowed } = useRolesWrapper() +const { isUIAllowed } = useRoles() const { isPg, isMysql } = useBase() diff --git a/packages/nc-gui/components/cell/SingleSelect.vue b/packages/nc-gui/components/cell/SingleSelect.vue index e61ac988dd..d961824e76 100644 --- a/packages/nc-gui/components/cell/SingleSelect.vue +++ b/packages/nc-gui/components/cell/SingleSelect.vue @@ -4,7 +4,7 @@ import { message } from 'ant-design-vue' import tinycolor from 'tinycolor2' import type { SelectOptionType } from 'nocodb-sdk' import type { FormFieldsLimitOptionsType } from '~/lib/types' -import {useRolesWrapper} from "~/composables/useRoles"; + interface Props { modelValue?: string | undefined @@ -50,7 +50,7 @@ const searchVal = ref() const { getMeta } = useMetas() -const { isUIAllowed } = useRolesWrapper() +const { isUIAllowed } = useRoles() const { isPg, isMysql } = useBase() diff --git a/packages/nc-gui/components/cell/attachment/Modal.vue b/packages/nc-gui/components/cell/attachment/Modal.vue index 82944f27ae..5e2c97c3a8 100644 --- a/packages/nc-gui/components/cell/attachment/Modal.vue +++ b/packages/nc-gui/components/cell/attachment/Modal.vue @@ -2,9 +2,9 @@ import { onKeyDown, useEventListener } from '@vueuse/core' import { useAttachmentCell } from './utils' import { useSortable } from './sort' -import {useRolesWrapper} from "~/composables/useRoles"; -const { isUIAllowed } = useRolesWrapper() + +const { isUIAllowed } = useRoles() const { open, diff --git a/packages/nc-gui/components/cell/attachment/index.vue b/packages/nc-gui/components/cell/attachment/index.vue index 8335952e9a..0b0e084693 100644 --- a/packages/nc-gui/components/cell/attachment/index.vue +++ b/packages/nc-gui/components/cell/attachment/index.vue @@ -2,7 +2,7 @@ import { onKeyDown } from '@vueuse/core' import { useProvideAttachmentCell } from './utils' import { useSortable } from './sort' -import {useRolesWrapper} from "~/composables/useRoles"; + interface Props { modelValue?: string | Record[] | null @@ -176,7 +176,7 @@ const keydownSpace = (e: KeyboardEvent) => { } } -const { isUIAllowed } = useRolesWrapper() +const { isUIAllowed } = useRoles() const isConfirmModalOpen = ref(false) const filetoDelete = reactive({ title: '', diff --git a/packages/nc-gui/components/dashboard/Sidebar/TopSection.vue b/packages/nc-gui/components/dashboard/Sidebar/TopSection.vue index 57fe869023..b08e907752 100644 --- a/packages/nc-gui/components/dashboard/Sidebar/TopSection.vue +++ b/packages/nc-gui/components/dashboard/Sidebar/TopSection.vue @@ -1,10 +1,10 @@