Skip to content

Commit

Permalink
MAT-7192 action center not shown when user is not owner
Browse files Browse the repository at this point in the history
  • Loading branch information
sb-prateekkeerthi committed Feb 24, 2025
1 parent b0d1d15 commit 7109c3f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/PageHeader/PageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,16 @@ const PageHeader = () => {
{pathname.includes("edit") && pathname.includes("cql-libraries") && (
<Fade in={libraryState?.cqlLibraryName !== undefined}>
<div className="details">
(
<div tw="pr-8" style={{ position: "relative" }}>
<div style={{ position: "absolute", top: 0, right: 0 }}>
<CqlLibraryActionCenter
canEdit={libraryCanEdit}
library={libraryState}
/>
{libraryCanEdit && (
<div tw="pr-8" style={{ position: "relative" }}>
<div style={{ position: "absolute", top: 0, right: 0 }}>
<CqlLibraryActionCenter
canEdit={libraryCanEdit}
library={libraryState}
/>
</div>
</div>
</div>
)
)}
<div>
<Breadcrumbs aria-label="Libraries">
<Link
Expand Down

0 comments on commit 7109c3f

Please sign in to comment.