improvement: address feedback

This commit is contained in:
Scott Wilson
2025-07-16 12:52:05 -07:00
parent 621bfe3e60
commit 3fe41f81fe
3 changed files with 4 additions and 6 deletions

View File

@@ -7,8 +7,6 @@ const matchesPath = (folderPath: string, pattern: string) => {
const normalizedPath = folderPath === "/" ? "/" : folderPath.replace(/\/$/, "");
const normalizedPattern = pattern === "/" ? "/" : pattern.replace(/\/$/, "");
console.log(normalizedPath, normalizedPattern);
if (normalizedPath === normalizedPattern) {
return true;
}

View File

@@ -31,7 +31,7 @@ export const RequestAccessModal = ({
title="You do not have permission to perform this action"
>
<p className="text-sm text-mineshaft-300">
Request access to gain access to this action.
Request access to perform this action in this folder.
</p>
</NoticeBannerV2>
)}

View File

@@ -645,7 +645,7 @@ const Page = () => {
icon={faInfoCircle}
className="ml-[0.15rem] mr-[1.65rem] text-primary"
/>
<span>You do not permission to read secrets for this path</span>
<span>You do not have permission to read secrets in this folder</span>
</div>
<Button
variant="outline_bg"
@@ -669,9 +669,9 @@ const Page = () => {
className="ml-[0.15rem] mr-[1.65rem] text-primary"
/>
<span>
You do not permission to {!canEditSecrets ? "edit" : ""}
You do not have permission to {!canEditSecrets ? "edit" : ""}
{!canEditSecrets && !canDeleteSecrets ? " or " : ""}
{!canDeleteSecrets ? "delete" : ""} secrets for this path
{!canDeleteSecrets ? "delete" : ""} secrets in this folder
</span>
</div>
<Button