mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-03 17:26:38 +00:00
move copy button and fix translation
This commit is contained in:
@@ -649,7 +649,8 @@
|
|||||||
"resourcesUsersRolesAccess": "User and role-based access control",
|
"resourcesUsersRolesAccess": "User and role-based access control",
|
||||||
"resourcesErrorUpdate": "Failed to toggle resource",
|
"resourcesErrorUpdate": "Failed to toggle resource",
|
||||||
"resourcesErrorUpdateDescription": "An error occurred while updating the resource",
|
"resourcesErrorUpdateDescription": "An error occurred while updating the resource",
|
||||||
"access": "Access Control",
|
"access": "Access",
|
||||||
|
"accessControl": "Access Control",
|
||||||
"shareLink": "{resource} Share Link",
|
"shareLink": "{resource} Share Link",
|
||||||
"resourceSelect": "Select resource",
|
"resourceSelect": "Select resource",
|
||||||
"shareLinks": "Share Links",
|
"shareLinks": "Share Links",
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ export const orgNavSections = (
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
heading: "access",
|
heading: "accessControl",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
title: "sidebarTeam",
|
title: "sidebarTeam",
|
||||||
|
|||||||
@@ -31,6 +31,18 @@ const CopyToClipboard = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center space-x-2 min-w-0 max-w-full">
|
<div className="flex items-center space-x-2 min-w-0 max-w-full">
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="h-6 w-6 p-0 flex items-center justify-center cursor-pointer flex-shrink-0"
|
||||||
|
onClick={handleCopy}
|
||||||
|
>
|
||||||
|
{!copied ? (
|
||||||
|
<Copy className="h-4 w-4" />
|
||||||
|
) : (
|
||||||
|
<Check className="text-green-500 h-4 w-4" />
|
||||||
|
)}
|
||||||
|
<span className="sr-only">{t("copyText")}</span>
|
||||||
|
</button>
|
||||||
{isLink ? (
|
{isLink ? (
|
||||||
<Link
|
<Link
|
||||||
href={text}
|
href={text}
|
||||||
@@ -54,18 +66,6 @@ const CopyToClipboard = ({
|
|||||||
{displayValue}
|
{displayValue}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className="h-6 w-6 p-0 flex items-center justify-center cursor-pointer flex-shrink-0"
|
|
||||||
onClick={handleCopy}
|
|
||||||
>
|
|
||||||
{!copied ? (
|
|
||||||
<Copy className="h-4 w-4" />
|
|
||||||
) : (
|
|
||||||
<Check className="text-green-500 h-4 w-4" />
|
|
||||||
)}
|
|
||||||
<span className="sr-only">{t("copyText")}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user