mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
f79412daab
@ -23,6 +23,7 @@ import {
|
|||||||
useCollectionManager,
|
useCollectionManager,
|
||||||
useCollectionRecordData,
|
useCollectionRecordData,
|
||||||
useDataBlockProps,
|
useDataBlockProps,
|
||||||
|
useDataBlockRequest,
|
||||||
} from '../data-source';
|
} from '../data-source';
|
||||||
import { useDataSourceKey } from '../data-source/data-source/DataSourceProvider';
|
import { useDataSourceKey } from '../data-source/data-source/DataSourceProvider';
|
||||||
import { SchemaComponentOptions, useDesignable } from '../schema-component';
|
import { SchemaComponentOptions, useDesignable } from '../schema-component';
|
||||||
@ -182,7 +183,8 @@ const getIgnoreScope = (options: any = {}) => {
|
|||||||
|
|
||||||
const useAllowedActions = () => {
|
const useAllowedActions = () => {
|
||||||
const service = useResourceActionContext();
|
const service = useResourceActionContext();
|
||||||
return service?.data?.meta?.allowedActions;
|
const dataBlockRequest: any = useDataBlockRequest();
|
||||||
|
return service?.data?.meta?.allowedActions || dataBlockRequest?.data?.meta?.allowedActions;
|
||||||
};
|
};
|
||||||
|
|
||||||
const useResourceName = () => {
|
const useResourceName = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user