mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 06:27:40 +00:00
Improve style
This commit is contained in:
@@ -351,25 +351,16 @@ export const AllProjectView = ({
|
|||||||
<span>Joined</span>
|
<span>Joined</span>
|
||||||
</Badge>
|
</Badge>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex gap-2 opacity-0 transition-all group-hover:opacity-100">
|
<div className="opacity-0 transition-all group-hover:opacity-100">
|
||||||
<Button
|
|
||||||
size="xs"
|
|
||||||
variant="outline_bg"
|
|
||||||
onClick={() => handlePopUpOpen("requestAccessConfirmation", workspace)}
|
|
||||||
>
|
|
||||||
Request Access
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<OrgPermissionCan
|
<OrgPermissionCan
|
||||||
I={OrgPermissionAdminConsoleAction.AccessAllProjects}
|
I={OrgPermissionAdminConsoleAction.AccessAllProjects}
|
||||||
an={OrgPermissionSubjects.AdminConsole}
|
an={OrgPermissionSubjects.AdminConsole}
|
||||||
>
|
>
|
||||||
{(isAllowed) =>
|
{(isAllowed) =>
|
||||||
isAllowed && (
|
isAllowed ? (
|
||||||
<Button
|
<Button
|
||||||
size="xs"
|
size="xs"
|
||||||
variant="star"
|
variant="outline_bg"
|
||||||
colorSchema="primary"
|
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@@ -382,6 +373,14 @@ export const AllProjectView = ({
|
|||||||
>
|
>
|
||||||
Admin Access
|
Admin Access
|
||||||
</Button>
|
</Button>
|
||||||
|
) : (
|
||||||
|
<Button
|
||||||
|
size="xs"
|
||||||
|
variant="outline_bg"
|
||||||
|
onClick={() => handlePopUpOpen("requestAccessConfirmation", workspace)}
|
||||||
|
>
|
||||||
|
Request Access
|
||||||
|
</Button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</OrgPermissionCan>
|
</OrgPermissionCan>
|
||||||
|
|||||||
Reference in New Issue
Block a user