diff --git a/services/web/frontend/js/features/history/components/change-list/changes.tsx b/services/web/frontend/js/features/history/components/change-list/changes.tsx index 4f94a345a6..ea5e495be3 100644 --- a/services/web/frontend/js/features/history/components/change-list/changes.tsx +++ b/services/web/frontend/js/features/history/components/change-list/changes.tsx @@ -14,20 +14,34 @@ function Changes({ pathnames, projectOps }: ChangesProps) {
    {pathnames.map(pathname => (
  1. -
    +
    {t('file_action_edited')}
    -
    {pathname}
    +
    + {pathname} +
  2. ))} {projectOps.map((op, index) => (
  3. -
    +
    {op.rename && t('file_action_renamed')} {op.add && t('file_action_created')} {op.remove && t('file_action_deleted')}
    -
    +
    {getProjectOpDoc(op)}
  4. diff --git a/services/web/frontend/js/features/history/components/change-list/dropdown/menu-item/download.tsx b/services/web/frontend/js/features/history/components/change-list/dropdown/menu-item/download.tsx index 456bd142ca..70f79eff8b 100644 --- a/services/web/frontend/js/features/history/components/change-list/dropdown/menu-item/download.tsx +++ b/services/web/frontend/js/features/history/components/change-list/dropdown/menu-item/download.tsx @@ -1,7 +1,6 @@ import { useTranslation } from 'react-i18next' -import { MenuItem, MenuItemProps } from 'react-bootstrap' +import { MenuItem } from 'react-bootstrap' import Icon from '../../../../../../shared/components/icon' -import * as location from '../../../../../../shared/components/location' type DownloadProps = { projectId: string @@ -17,19 +16,12 @@ function Download({ }: DownloadProps) { const { t } = useTranslation() - const handleDownloadVersion = (e: React.MouseEvent) => { - e.preventDefault() - closeDropdown() - const event = e as typeof e & { target: HTMLAnchorElement } - location.assign(event.target.href) - } - return ( {t('history_download_this_version')} diff --git a/services/web/frontend/js/features/history/components/change-list/history-version-details.tsx b/services/web/frontend/js/features/history/components/change-list/history-version-details.tsx index da8cf48384..770e5a5e02 100644 --- a/services/web/frontend/js/features/history/components/change-list/history-version-details.tsx +++ b/services/web/frontend/js/features/history/components/change-list/history-version-details.tsx @@ -38,6 +38,7 @@ function HistoryVersionDetails({ 'history-version-selectable': selectable, })} data-testid="history-version-details" + data-selected={selected} onClick={selectable ? handleSelect : undefined} > {children} diff --git a/services/web/frontend/js/features/history/components/change-list/history-version.tsx b/services/web/frontend/js/features/history/components/change-list/history-version.tsx index f520768097..f5b3d8ddbd 100644 --- a/services/web/frontend/js/features/history/components/change-list/history-version.tsx +++ b/services/web/frontend/js/features/history/components/change-list/history-version.tsx @@ -66,7 +66,10 @@ function HistoryVersion({ selectable={selectable} >
    -