|
|
@@ -12,6 +12,7 @@ import { IFormattedSearchResult } from '~/interfaces/search';
|
|
|
import { useIsSearchServiceReachable, useShowPageLimitationL } from '~/stores/context';
|
|
|
import { ISearchConditions, ISearchConfigurations, useSWRxSearch } from '~/stores/search';
|
|
|
|
|
|
+import { NotAvailableForGuest } from './NotAvailableForGuest';
|
|
|
import PaginationWrapper from './PaginationWrapper';
|
|
|
import { OperateAllControl } from './SearchPage/OperateAllControl';
|
|
|
import SearchControl from './SearchPage/SearchControl';
|
|
|
@@ -183,21 +184,23 @@ export const SearchPage = (): JSX.Element => {
|
|
|
const isDisabled = hitsCount === 0;
|
|
|
|
|
|
return (
|
|
|
- <OperateAllControl
|
|
|
- ref={selectAllControlRef}
|
|
|
- isCheckboxDisabled={isDisabled}
|
|
|
- onCheckboxChanged={selectAllCheckboxChangedHandler}
|
|
|
- >
|
|
|
- <button
|
|
|
- type="button"
|
|
|
- className="btn btn-outline-danger text-nowrap border-0 px-2"
|
|
|
- disabled={isDisabled}
|
|
|
- onClick={deleteAllButtonClickedHandler}
|
|
|
+ <NotAvailableForGuest>
|
|
|
+ <OperateAllControl
|
|
|
+ ref={selectAllControlRef}
|
|
|
+ isCheckboxDisabled={isDisabled}
|
|
|
+ onCheckboxChanged={selectAllCheckboxChangedHandler}
|
|
|
>
|
|
|
- <i className="icon-fw icon-trash"></i>
|
|
|
- {t('search_result.delete_all_selected_page')}
|
|
|
- </button>
|
|
|
- </OperateAllControl>
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ className="btn btn-outline-danger text-nowrap border-0 px-2"
|
|
|
+ disabled={isDisabled}
|
|
|
+ onClick={deleteAllButtonClickedHandler}
|
|
|
+ >
|
|
|
+ <i className="icon-fw icon-trash"></i>
|
|
|
+ {t('search_result.delete_all_selected_page')}
|
|
|
+ </button>
|
|
|
+ </OperateAllControl>
|
|
|
+ </NotAvailableForGuest>
|
|
|
);
|
|
|
}, [deleteAllButtonClickedHandler, hitsCount, selectAllCheckboxChangedHandler, t]);
|
|
|
|