Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/credebl/studio into qa
Browse files Browse the repository at this point in the history
  • Loading branch information
16-karan committed Feb 26, 2024
2 parents 69c78a6 + 1c20f6e commit 008a17d
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions src/components/User/UserDashBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,10 @@ const UserDashBoard = () => {
</svg>
</span>
) : org.roles.includes(
OrganizationRoles.organizationVerifier ??
OrganizationRoles.organizationIssuer,
OrganizationRoles.organizationVerifier,
) ||
org.roles.includes(
OrganizationRoles.organizationIssuer,
) ? (
<span
title={org.roles.slice(
Expand Down Expand Up @@ -765,28 +767,31 @@ const UserDashBoard = () => {
placement="bottom"
className="items-center text-center dark:text-white"
>
{' '}
<button
onClick={() => {
goToOrgSchema(org, org.id, org.roles);
}}
className={`p-1 rounded-md ${
organizationsList[index].userOrgRoles[0]
.orgRole.name !==
OrganizationRoles.organizationOwner ||
organizationsList[index].userOrgRoles[0]
.orgRole.name ===
OrganizationRoles.organizationAdmin
!(
organizationsList[index].userOrgRoles[0]
.orgRole.name ===
OrganizationRoles.organizationOwner ||
organizationsList[index].userOrgRoles[0]
.orgRole.name ===
OrganizationRoles.organizationAdmin
)
? 'cursor-not-allowed opacity-50'
: ''
}`}
disabled={
organizationsList[index].userOrgRoles[0]
.orgRole.name !==
OrganizationRoles.organizationOwner ||
organizationsList[index].userOrgRoles[0]
.orgRole.name ===
OrganizationRoles.organizationAdmin
!(
organizationsList[index].userOrgRoles[0]
.orgRole.name ===
OrganizationRoles.organizationOwner ||
organizationsList[index].userOrgRoles[0]
.orgRole.name ===
OrganizationRoles.organizationAdmin
)
}
>
<svg
Expand Down

0 comments on commit 008a17d

Please sign in to comment.