diff --git a/app-typescript/components/Layouts/AuthoringInnerHeader.tsx b/app-typescript/components/Layouts/AuthoringInnerHeader.tsx index 8ce6ec65..708affe1 100644 --- a/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +++ b/app-typescript/components/Layouts/AuthoringInnerHeader.tsx @@ -7,6 +7,7 @@ interface IProps { children?: React.ReactNode; collapsed?: boolean; headerPadding?: HeaderPadding; + hideCollapseButton?: boolean; } interface IState { @@ -23,6 +24,8 @@ export class AuthoringInnerHeader extends React.PureComponent { } render() { + const hideCollapseButton = this.props.hideCollapseButton ?? false; + const classes = classNames('sd-editor-content__authoring-header', { 'authoring-header--collapsed': this.state.collapsed, }); @@ -41,10 +44,12 @@ export class AuthoringInnerHeader extends React.PureComponent {
{this.props.children}
- + {!hideCollapseButton && ( + + )} ); } diff --git a/app-typescript/components/Layouts/AuthoringMain.tsx b/app-typescript/components/Layouts/AuthoringMain.tsx index 8660e559..d65031cd 100644 --- a/app-typescript/components/Layouts/AuthoringMain.tsx +++ b/app-typescript/components/Layouts/AuthoringMain.tsx @@ -22,6 +22,7 @@ interface IProps { authoringHeader?: React.ReactNode; authoringBookmarks?: React.ReactNode; headerCollapsed?: boolean; + hideCollapseButton?: boolean; headerPadding?: HeaderPadding; toolbarCustom?: boolean; noPaddingForContent?: boolean; @@ -39,6 +40,7 @@ export class AuthoringMain extends React.PureComponent { {this.props.authoringHeader && ( {this.props.authoringHeader} diff --git a/package-lock.json b/package-lock.json index 6b06d0f8..47e8408b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "superdesk-ui-framework", - "version": "4.0.0", + "version": "4.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index bf12979d..0699ec91 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "superdesk-ui-framework", - "version": "4.0.0", + "version": "4.0.1", "license": "AGPL-3.0", "repository": { "type": "git",