mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Removing status panel from log controls
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
28581a3957
commit
0896ba52db
@ -27,6 +27,7 @@ interface OptionalProps {
|
|||||||
showSubmitClose?: boolean;
|
showSubmitClose?: boolean;
|
||||||
showInlineInfo?: boolean;
|
showInlineInfo?: boolean;
|
||||||
showNotifications?: boolean;
|
showNotifications?: boolean;
|
||||||
|
showStatusPanel?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@observer
|
@observer
|
||||||
@ -38,6 +39,7 @@ export class InfoPanel extends Component<Props> {
|
|||||||
showSubmitClose: true,
|
showSubmitClose: true,
|
||||||
showInlineInfo: true,
|
showInlineInfo: true,
|
||||||
showNotifications: true,
|
showNotifications: true,
|
||||||
|
showStatusPanel: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
@observable error = "";
|
@observable error = "";
|
||||||
@ -93,7 +95,7 @@ export class InfoPanel extends Component<Props> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
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 { submit, close, submitAndClose, waiting } = this;
|
||||||
const isDisabled = !!(disableSubmit || waiting || error);
|
const isDisabled = !!(disableSubmit || waiting || error);
|
||||||
|
|
||||||
@ -102,9 +104,11 @@ export class InfoPanel extends Component<Props> {
|
|||||||
<div className="controls">
|
<div className="controls">
|
||||||
{controls}
|
{controls}
|
||||||
</div>
|
</div>
|
||||||
<div className="info flex gaps align-center">
|
{showStatusPanel && (
|
||||||
{waiting ? <><Spinner /> {submittingMessage}</> : this.renderErrorIcon()}
|
<div className="flex gaps align-center">
|
||||||
</div>
|
{waiting ? <><Spinner /> {submittingMessage}</> : this.renderErrorIcon()}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
{showButtons && (
|
{showButtons && (
|
||||||
<>
|
<>
|
||||||
<Button plain label={<Trans>Cancel</Trans>} onClick={close} />
|
<Button plain label={<Trans>Cancel</Trans>} onClick={close} />
|
||||||
|
|||||||
@ -103,6 +103,7 @@ export class PodLogs extends React.Component<Props> {
|
|||||||
controls={controls}
|
controls={controls}
|
||||||
showSubmitClose={false}
|
showSubmitClose={false}
|
||||||
showButtons={false}
|
showButtons={false}
|
||||||
|
showStatusPanel={false}
|
||||||
/>
|
/>
|
||||||
<PodLogList
|
<PodLogList
|
||||||
logs={logs}
|
logs={logs}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user