Web: Files: Public-room: added tooltips to action buttons

This commit is contained in:
Nikita Gopienko 2023-08-15 14:46:12 +03:00
parent 9e6008f75e
commit 76c8fe6d52
3 changed files with 14 additions and 4 deletions

View File

@ -153,5 +153,8 @@
"LinkValidUntil": "This link will be valid until",
"NoExternalLinks": "No external links",
"AllLinksAreDisabled": "All links are disabled",
"MaximumNumberOfExternalLinksCreated": "Maximum number of external links created"
"MaximumNumberOfExternalLinksCreated": "Maximum number of external links created",
"AddNewExternalLink": "Add new external link",
"CopyLinkPassword": "Copy link password",
"ShowLinkActions": "Show link actions"
}

View File

@ -86,7 +86,7 @@ const LinkRow = (props) => {
.finally(() => setIsLoading(false));
};
const onLockClick = () => {
const onCopyPassword = () => {
copy(password);
toastr.success(t("Files:PasswordSuccessfullyCopied"));
};
@ -198,7 +198,8 @@ const LinkRow = (props) => {
className="locked-icon"
size={16}
iconName={LockedReactSvgUrl}
onClick={onLockClick}
onClick={onCopyPassword}
title={t("Files:CopyLinkPassword")}
/>
)}
<IconButton
@ -206,12 +207,17 @@ const LinkRow = (props) => {
size={16}
iconName={CopyReactSvgUrl}
onClick={onCopyExternalLink}
title={t("SharingPanel:CopyExternalLink")}
/>
</>
)}
{!isArchiveFolder && (
<ContextMenuButton getData={getData} isDisabled={false} />
<ContextMenuButton
getData={getData}
isDisabled={false}
title={t("Files:ShowLinkActions")}
/>
)}
</div>
</StyledLinkRow>

View File

@ -56,6 +56,7 @@ const PublicRoomBlock = (props) => {
onClick={onAddNewLink}
size={16}
isDisabled={externalLinks.length >= LINKS_LIMIT_COUNT}
title={t("Files:AddNewExternalLink")}
/>
{externalLinks.length >= LINKS_LIMIT_COUNT && (