Skip to content

Commit

Permalink
hide toolbar for frozen locales (#3213)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo authored Mar 12, 2021
1 parent 5da3942 commit bee9ee2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/document/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function Document(props /* TODO: define a TS interface for this */) {
<>
{doc.isArchive && !doc.isTranslated && <Archived />}

{/* if we have either breadcrumbs or translations for the current page,
{/* if we have either breadcrumbs or translations for the current page,
continue rendering the section */}
{(doc.parents || !!translations.length) && (
<div className="breadcrumb-locale-container">
Expand All @@ -159,7 +159,7 @@ export function Document(props /* TODO: define a TS interface for this */) {
{doc.toc && !!doc.toc.length && <TOC toc={doc.toc} />}

<MainContentContainer>
{!isServer && CRUD_MODE && !props.isPreview && !doc.isArchive && (
{!isServer && CRUD_MODE && !props.isPreview && doc.isActive && (
<React.Suspense
fallback={<p className="loading-toolbar">Loading toolbar</p>}
>
Expand Down
1 change: 1 addition & 0 deletions client/src/document/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,5 @@ export interface Doc {
contributors: string[];
isArchive: boolean;
isTranslated: boolean;
isActive: boolean;
}

0 comments on commit bee9ee2

Please sign in to comment.