Skip to content

Commit

Permalink
Add section title
Browse files Browse the repository at this point in the history
  • Loading branch information
thomtrp committed Sep 5, 2024
1 parent 24fa4b7 commit de1b87a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const WorkspaceFavorites = () => {

return (
<NavigationDrawerSectionForObjectMetadataItems
sectionTitle={'Workspace Favorites'}
objectMetadataItems={objectMetadataItemsToDisplay}
views={views}
isRemote={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ const ORDERED_STANDARD_OBJECTS = [
];

export const NavigationDrawerSectionForObjectMetadataItems = ({
sectionTitle,
isRemote,
views,
objectMetadataItems,
}: {
sectionTitle: string;
isRemote: boolean;
views: View[];
objectMetadataItems: ObjectMetadataItem[];
Expand All @@ -44,7 +46,7 @@ export const NavigationDrawerSectionForObjectMetadataItems = ({
objectMetadataItems.length > 0 && (
<NavigationDrawerSection>
<NavigationDrawerSectionTitle
label={isRemote ? 'Remote' : 'Workspace'}
label={sectionTitle}
onClick={() => toggleNavigationSection()}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const NavigationDrawerSectionForObjectMetadataItemsWrapper = ({

return (
<NavigationDrawerSectionForObjectMetadataItems
sectionTitle={isRemote ? 'Remote' : 'Workspace'}
objectMetadataItems={filteredActiveObjectMetadataItems}
views={views}
isRemote={isRemote}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1281,8 +1281,8 @@ export class ObjectMetadataService extends TypeOrmQueryService<ObjectMetadataEnt
}

private async createViewWorkspaceFavorite(
viewId: string,
workspaceId: string,
viewId: string,
): Promise<FavoriteWorkspaceEntity> {
const favoriteRepository =
await this.twentyORMGlobalManager.getRepositoryForWorkspace<FavoriteWorkspaceEntity>(
Expand Down

0 comments on commit de1b87a

Please sign in to comment.