9
9
QUERY_LIBRARY_URL ,
10
10
SETTING ,
11
11
TRASH_URL ,
12
+ ADMIN_APP_URL
12
13
} from "constants/routesURL" ;
13
14
import { getUser , isFetchingUser } from "redux/selectors/usersSelectors" ;
14
15
import { useDispatch , useSelector } from "react-redux" ;
@@ -26,7 +27,8 @@ import {
26
27
PointIcon ,
27
28
RecyclerIcon ,
28
29
MarketplaceIcon ,
29
- AppsIcon
30
+ AppsIcon ,
31
+ EnterpriseIcon
30
32
} from "lowcoder-design" ;
31
33
import React , { useEffect , useState } from "react" ;
32
34
import { fetchAllApplications , fetchHomeData } from "redux/reduxActions/applicationActions" ;
@@ -53,6 +55,10 @@ import { foldersSelector } from "../../redux/selectors/folderSelector";
53
55
import Setting from "pages/setting" ;
54
56
import { TypographyText } from "../../components/TypographyText" ;
55
57
import { messageInstance } from "lowcoder-design" ;
58
+ import { isEE } from "util/envUtils" ;
59
+
60
+ // adding App Editor, so we can show Apps inside the Admin Area
61
+ import AppEditor from "../editor/AppEditor" ;
56
62
57
63
const TabLabel = styled . div `
58
64
font-weight: 500;
@@ -408,6 +414,18 @@ export default function ApplicationHome() {
408
414
} ,
409
415
] ,
410
416
} ,
417
+ isEE ( ) ? {
418
+ items : [
419
+ {
420
+ text : < TabLabel > { trans ( "settings.AppUsage" ) } </ TabLabel > ,
421
+ routePath : "/ee/6600ae8724a23f365ba2ed4c/admin" ,
422
+ routePathExact : false ,
423
+ routeComp : AppEditor ,
424
+ icon : ( { selected, ...otherProps } ) => selected ? ( < EnterpriseIcon { ...otherProps } width = { "24px" } /> ) : ( < EnterpriseIcon { ...otherProps } width = { "24px" } /> ) ,
425
+ visible : ( { user } ) => user . orgDev ,
426
+ } ,
427
+ ] ,
428
+ } : { items : [ ] } ,
411
429
] }
412
430
/>
413
431
{ user . orgDev && (
0 commit comments