mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 20:27:43 +00:00
fix: review comments
This commit is contained in:
+1
-1
@@ -85,7 +85,7 @@ export const AddGroupProjectModal = ({ popUp, handlePopUpToggle }: Props) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
createNotification({
|
createNotification({
|
||||||
text: `Successfully assigned project ${projectName} to the group`,
|
text: `Successfully assigned the group to project ${projectName}`,
|
||||||
type: "success"
|
type: "success"
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
+1
-1
@@ -31,7 +31,7 @@ export const GroupProjectsSection = ({ groupId, groupSlug }: Props) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
createNotification({
|
createNotification({
|
||||||
text: `Successfully removed group from project ${projectName}`,
|
text: `Successfully removed the group from project ${projectName}`,
|
||||||
type: "success"
|
type: "success"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -149,14 +149,14 @@ export const GroupProjectsTable = ({ groupId, groupSlug, handlePopUpOpen }: Prop
|
|||||||
{isEmpty && (
|
{isEmpty && (
|
||||||
<EmptyState
|
<EmptyState
|
||||||
title={
|
title={
|
||||||
groupMemberships?.projects.length
|
debouncedSearch
|
||||||
? "No projects match this search..."
|
? "No projects match this search..."
|
||||||
: "This group is not a part of any projects yet"
|
: "This group is not a part of any projects yet"
|
||||||
}
|
}
|
||||||
icon={groupMemberships?.projects.length ? faSearch : faFolder}
|
icon={debouncedSearch ? faSearch : faFolder}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{!groupMemberships?.projects.length && (
|
{isEmpty && (
|
||||||
<OrgPermissionCan I={OrgPermissionGroupActions.Edit} a={OrgPermissionSubjects.Groups}>
|
<OrgPermissionCan I={OrgPermissionGroupActions.Edit} a={OrgPermissionSubjects.Groups}>
|
||||||
{(isAllowed) => (
|
{(isAllowed) => (
|
||||||
<div className="mb-4 flex items-center justify-center">
|
<div className="mb-4 flex items-center justify-center">
|
||||||
|
|||||||
Reference in New Issue
Block a user