Web: Files: added title to VersionHistory

This commit is contained in:
Nikita Gopienko 2023-04-20 13:41:23 +03:00
parent 19542a5b0f
commit 3348134c28
5 changed files with 13 additions and 0 deletions

View File

@ -181,6 +181,7 @@ const Badges = ({
{...onShowVersionHistoryProp}
noHover={true}
isVersionBadge={true}
title={t("ShowVersionHistory")}
/>
</BadgeWrapper>
)}

View File

@ -735,6 +735,7 @@ const SectionHeaderContent = (props) => {
actions: isRoomsFolder
? t("Files:NewRoom")
: t("Common:Actions"),
contextMenu: t("Translations:TitleShowFolderActions"),
}}
withMenu={!isRoomsFolder}
onPlusClick={onCreateRoom}

View File

@ -128,6 +128,7 @@ const VersionRow = (props) => {
isTabletView={isTabletView}
isSavingComment={isSavingComment}
isEditing={isEditing}
contextTitle={t("Common:Actions")}
>
<div className={`version-row_${index}`}>
<Box displayProp="flex" className="row-header">
@ -141,6 +142,13 @@ const VersionRow = (props) => {
versionGroup={info.versionGroup}
{...onClickProp}
t={t}
title={
index > 0
? isVersion
? t("Files:MarkAsRevision")
: t("Files:MarkAsVersion")
: ""
}
/>
<Link
onClick={onOpenFile}

View File

@ -135,6 +135,7 @@ const ControlButtons = ({
isFill
getData={getContextOptionsFolder}
isDisabled={false}
title={titles?.contextMenu}
/>
{!isDesktop && (

View File

@ -40,6 +40,7 @@ class Row extends React.Component {
getContextModel,
isRoom,
withoutBorder,
contextTitle,
} = this.props;
const renderCheckbox = Object.prototype.hasOwnProperty.call(
@ -168,6 +169,7 @@ class Row extends React.Component {
directionX="right"
isNew={true}
onClick={onContextMenu}
title={contextTitle}
/>
) : (
<div className="expandButton"> </div>