Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #91 from scale8/not-owner-notifications
Browse files Browse the repository at this point in the history
Don't show account notifications to non owners
  • Loading branch information
cwbeck authored May 24, 2022
2 parents 745077f + 5721bca commit 79facd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ui/src/components/organisms/Breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const Breadcrumb: FC<BreadcrumbProps> = (props: BreadcrumbProps) => {
const { orgUserState, templateInteractions } = useLoggedInState();
const { section } = templateInteractions;
const sectionDetails = getSectionDetails(section);
const isOwner = orgUserState !== null && orgUserState.isOwner;

const [scroller, setScroller] = useState<'left' | 'right' | 'none'>('none');

Expand Down Expand Up @@ -81,7 +82,7 @@ const Breadcrumb: FC<BreadcrumbProps> = (props: BreadcrumbProps) => {

return (
<>
{orgUserState !== null && accountIsTrial && (
{orgUserState !== null && accountIsTrial && isOwner && (
<Box display="flex" justifyContent="center">
<Box
color="#ffffff"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const OrgAccountSection: FC<OrgAccountSectionProps> = (props: OrgAccountSectionP
}

const trialInfo =
account.is_trial || account.trial_expired ? (
isOwner && (account.is_trial || account.trial_expired) ? (
<Box width="100%" mb={2}>
<Alert severity={account.trial_expired ? 'error' : 'info'}>
{account.trial_expired ? (
Expand Down

0 comments on commit 79facd6

Please sign in to comment.