Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "All" or "All/None" option to dropdown filters. #52

Merged
merged 10 commits into from
Aug 22, 2023

Conversation

Fifok
Copy link
Contributor

@Fifok Fifok commented Jun 20, 2023

According to #49

@Fifok Fifok linked an issue Jun 20, 2023 that may be closed by this pull request
@mgorzanski
Copy link
Contributor

I'm not sure if this is a good idea to change "All" to "None" when selecting all. For me it looks strange to have a "None" selected and all items visible.
image

@@ -29,6 +29,7 @@ interface FilteredTableDataHookOptions<TableDataType> {
disableFrontendFiltering?: boolean;
disableFrontendPagination?: boolean;
disableFrontendSorting?: boolean;
defaultVisiableColumn: keyof TableDataType;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo here, should be visible

@@ -5,7 +5,7 @@ import { useTranslations } from "../../Contexts/TranslationsProvider";

interface ContentTypeBasesFilterProps {
contentTypeBases: ContentTypeBase[];
onChange?: (contentTypeBase: ContentTypeBase) => void;
onChange?: (contentTypeBase: ContentTypeBase, selectAll?: boolean) => void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

selectAll unused?

@Fifok Fifok merged commit 91645e8 into dev Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "All/None" option to dropdown filters
2 participants