Web: Files: Public-room: added tooltips to action buttons
This commit is contained in:
parent
9e6008f75e
commit
76c8fe6d52
@ -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"
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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 && (
|
||||
|
Loading…
Reference in New Issue
Block a user