diff --git a/src/renderer/components/dock/info-panel.tsx b/src/renderer/components/dock/info-panel.tsx index 4f36d47fc3..34e456fdd6 100644 --- a/src/renderer/components/dock/info-panel.tsx +++ b/src/renderer/components/dock/info-panel.tsx @@ -27,6 +27,7 @@ interface OptionalProps { showSubmitClose?: boolean; showInlineInfo?: boolean; showNotifications?: boolean; + showStatusPanel?: boolean; } @observer @@ -38,6 +39,7 @@ export class InfoPanel extends Component { showSubmitClose: true, showInlineInfo: true, showNotifications: true, + showStatusPanel: true, }; @observable error = ""; @@ -93,7 +95,7 @@ export class InfoPanel extends Component { } render() { - const { className, controls, submitLabel, disableSubmit, error, submittingMessage, showButtons, showSubmitClose } = this.props; + const { className, controls, submitLabel, disableSubmit, error, submittingMessage, showButtons, showSubmitClose, showStatusPanel } = this.props; const { submit, close, submitAndClose, waiting } = this; const isDisabled = !!(disableSubmit || waiting || error); @@ -102,9 +104,11 @@ export class InfoPanel extends Component {
{controls}
-
- {waiting ? <> {submittingMessage} : this.renderErrorIcon()} -
+ {showStatusPanel && ( +
+ {waiting ? <> {submittingMessage} : this.renderErrorIcon()} +
+ )} {showButtons && ( <>