Skip to content

Commit

Permalink
Merge pull request #1180 from lowcoder-org/dev
Browse files Browse the repository at this point in the history
Fixing Folders View in Admin Area
  • Loading branch information
FalkWolsky authored Sep 21, 2024
2 parents ff2b1e1 + 43dea52 commit 8a9b88e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,10 @@ export interface HomeLayoutProps {

export function HomeLayout(props: HomeLayoutProps) {


const { breadcrumb = [], elements = [], localMarketplaceApps = [], globalMarketplaceApps = [], mode } = props;

console.log("HomeLayout props: ", props);

const categoryOptions = [
{ label: <FilterMenuItem>{trans("home.allCategories")}</FilterMenuItem>, value: 'All' },
...Object.entries(ApplicationCategoriesEnum).map(([key, value]) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export function RootFolderListView() {
const user = useSelector(getUser);
const allFolders = useSelector(foldersSelector);

console.log("RootFolderListView", allFolders);

if (!user.currentOrgId) {
return null;
}
Expand Down
18 changes: 15 additions & 3 deletions client/packages/lowcoder/src/pages/ApplicationV2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {
USER_PROFILE_URL,
ALL_APPLICATIONS_URL,
DATASOURCE_URL,
// FOLDER_URL,
// FOLDER_URL_PREFIX,
FOLDER_URL,
FOLDER_URL_PREFIX,
FOLDERS_URL,
MARKETPLACE_URL,
// MODULE_APPLICATIONS_URL,
Expand Down Expand Up @@ -50,7 +50,7 @@ import { NewsView } from "./NewsView";
import { OrgView } from "./OrgView";
import styled, { css } from "styled-components";
// import history from "../../util/history";
// import { FolderView } from "./FolderView";
import { FolderView } from "./FolderView";
import { TrashView } from "./TrashView";
import { MarketplaceView } from "./MarketplaceView";
// import { SideBarItemType } from "../../components/layout/SideBarSection";
Expand Down Expand Up @@ -334,6 +334,18 @@ export default function ApplicationHome() {
],
},

// this we need to show the Folders view in the Admin Area
{
items: [
{
text: "",
routePath: FOLDER_URL,
routeComp: FolderView,
visible: () => false,
}
]
}

]}
/>
</DivStyled>
Expand Down

0 comments on commit 8a9b88e

Please sign in to comment.