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

UIBULKED-351 Hide Query tab #387

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
* [UIBULKED-312](https://issues.folio.org/browse/UIBULKED-312) CSV: On cancel button click uploaded file should be deleted.
* [UIBULKED-346](https://issues.folio.org/browse/UIBULKED-346) *BREAKING* bump `react-intl` to `v6.4.4`.
* [UIBULKED-343](https://issues.folio.org/browse/UIBULKED-343) Refactor logic for downloading file from actions menu.
* [UIBULKED-351](https://issues.folio.org/browse/UIBULKED-351) Hide Query tab

## [3.0.5](https://github.com/folio-org/ui-bulk-edit/tree/v3.0.5) (2023-03-22)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import { CRITERIA } from '../../../../constants';

const FilterTabs = ({ criteria, hasLogViewPerms, hasQueryViewPerms, onCriteriaChange }) => {
const FilterTabs = ({ criteria, hasQueryViewPerms, onCriteriaChange }) => {
const buttonStyleActive = (criteriaToCompare) => (criteria === criteriaToCompare ? 'primary' : 'default');

return (
Expand All @@ -23,14 +23,15 @@ const FilterTabs = ({ criteria, hasLogViewPerms, hasQueryViewPerms, onCriteriaCh
<FormattedMessage id="ui-bulk-edit.list.filters.query" />
</Button>
)}
{hasLogViewPerms && (
{/* temporarily commented out because of https://issues.folio.org/browse/UIBULKED-351 */}
{/* {hasLogViewPerms && (
<Button
buttonStyle={buttonStyleActive(CRITERIA.LOGS)}
onClick={() => onCriteriaChange(CRITERIA.LOGS)}
>
<FormattedMessage id="ui-bulk-edit.list.filters.logs" />
</Button>
)}
)} */}
</>
);
};
Expand Down
Loading