Skip to content

Commit 8a9b88e

Browse files
authored
Merge pull request #1180 from lowcoder-org/dev
Fixing Folders View in Admin Area
2 parents ff2b1e1 + 43dea52 commit 8a9b88e

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,10 @@ export interface HomeLayoutProps {
305305

306306
export function HomeLayout(props: HomeLayoutProps) {
307307

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

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

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

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export function RootFolderListView() {
99
const user = useSelector(getUser);
1010
const allFolders = useSelector(foldersSelector);
1111

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

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

+15-3
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
import styled, { 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)