Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a9b88e

Browse files
authored
Merge pull request#1180 from lowcoder-org/dev
Fixing Folders View in Admin Area
2 parentsff2b1e1 +43dea52 commit8a9b88e

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

‎client/packages/lowcoder/src/pages/ApplicationV2/HomeLayout.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,10 @@ export interface HomeLayoutProps {
305305

306306
exportfunctionHomeLayout(props:HomeLayoutProps){
307307

308-
309308
const{ breadcrumb=[], elements=[], localMarketplaceApps=[], globalMarketplaceApps=[], mode}=props;
310309

310+
console.log("HomeLayout props: ",props);
311+
311312
constcategoryOptions=[
312313
{label:<FilterMenuItem>{trans("home.allCategories")}</FilterMenuItem>,value:'All'},
313314
...Object.entries(ApplicationCategoriesEnum).map(([key,value])=>({

‎client/packages/lowcoder/src/pages/ApplicationV2/RootFolderListView.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export function RootFolderListView() {
99
constuser=useSelector(getUser);
1010
constallFolders=useSelector(foldersSelector);
1111

12+
console.log("RootFolderListView",allFolders);
13+
1214
if(!user.currentOrgId){
1315
returnnull;
1416
}

‎client/packages/lowcoder/src/pages/ApplicationV2/index.tsx‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {
22
USER_PROFILE_URL,
33
ALL_APPLICATIONS_URL,
44
DATASOURCE_URL,
5-
//FOLDER_URL,
6-
//FOLDER_URL_PREFIX,
5+
FOLDER_URL,
6+
FOLDER_URL_PREFIX,
77
FOLDERS_URL,
88
MARKETPLACE_URL,
99
// MODULE_APPLICATIONS_URL,
@@ -50,7 +50,7 @@ import { NewsView } from "./NewsView";
5050
import{OrgView}from"./OrgView";
5151
importstyled,{css}from"styled-components";
5252
// import history from "../../util/history";
53-
//import { FolderView } from "./FolderView";
53+
import{FolderView}from"./FolderView";
5454
import{TrashView}from"./TrashView";
5555
import{MarketplaceView}from"./MarketplaceView";
5656
// import { SideBarItemType } from "../../components/layout/SideBarSection";
@@ -334,6 +334,18 @@ export default function ApplicationHome() {
334334
],
335335
},
336336

337+
// this we need to show the Folders view in the Admin Area
338+
{
339+
items:[
340+
{
341+
text:"",
342+
routePath:FOLDER_URL,
343+
routeComp:FolderView,
344+
visible:()=>false,
345+
}
346+
]
347+
}
348+
337349
]}
338350
/>
339351
</DivStyled>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp