File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
client/packages/openblocks/src Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import {
33
33
QUICK_GRAPHQL_ID ,
34
34
QUICK_REST_API_ID ,
35
35
} from "../../../constants/datasourceConstants" ;
36
+ import { OLD_OPENBLOCKS_DATASOURCE } from "@openblocks-ee/constants/datasourceConstants" ;
36
37
37
38
export function QueryPropertyView ( props : { comp : InstanceType < typeof QueryComp > } ) {
38
39
const { comp } = props ;
@@ -187,8 +188,7 @@ export const QueryGeneralPropertyView = (props: {
187
188
( ) =>
188
189
datasource . find (
189
190
( d ) =>
190
- d . datasource . creationSource === 2 &&
191
- ( d . datasource . type === "openblocksApi" || d . datasource . type === "majiangInternal" )
191
+ d . datasource . creationSource === 2 && OLD_OPENBLOCKS_DATASOURCE . includes ( d . datasource . type )
192
192
) ?. datasource . id ,
193
193
[ datasource ]
194
194
) ;
Original file line number Diff line number Diff line change @@ -36,5 +36,6 @@ export const QUICK_GRAPHQL_ID = "#QUICK_GRAPHQL";
36
36
export const OPENBLOCKS_API_ID = "#OPENBLOCKS_API" ;
37
37
export const OPENBLOCKS_API_INFO = {
38
38
icon : getBottomResIcon ( "openblocksApi" ) ,
39
- name : "码匠数据源 " ,
39
+ name : "Openblocks API " ,
40
40
} ;
41
+ export const OLD_OPENBLOCKS_DATASOURCE : Partial < DatasourceType > [ ] = [ ] ;
Original file line number Diff line number Diff line change
1
+ import { OrgGroup } from "constants/orgConstants" ;
2
+
1
3
export function usePermissionMenuItems ( orgId : string ) {
2
4
return {
3
- nameSuffixFunc : ( ) => < > </ > ,
5
+ nameSuffixFunc : ( group ?: OrgGroup ) => < > </ > ,
4
6
menuItemsFunc : undefined as Function | undefined ,
5
7
menuExtraView : undefined ,
6
8
} ;
You can’t perform that action at this time.
0 commit comments