From 29adcdc60707f3c2c05759a63e78ffd382502698 Mon Sep 17 00:00:00 2001 From: DavidKutu Date: Wed, 15 Jul 2020 12:34:33 -0700 Subject: [PATCH] hide the gather button while a cell is executing --- src/datascience-ui/history-react/interactiveCell.tsx | 1 + src/datascience-ui/native-editor/nativeCell.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/datascience-ui/history-react/interactiveCell.tsx b/src/datascience-ui/history-react/interactiveCell.tsx index b9e38b64fa1f..558258ebb099 100644 --- a/src/datascience-ui/history-react/interactiveCell.tsx +++ b/src/datascience-ui/history-react/interactiveCell.tsx @@ -189,6 +189,7 @@ export class InteractiveCell extends React.Component { onClick={gatherCode} hidden={ this.props.cellVM.cell.state === CellState.error || + this.props.cellVM.cell.state === CellState.executing || this.props.cellVM.cell.data.cell_type === 'markdown' || !this.props.settings.gatherIsInstalled } diff --git a/src/datascience-ui/native-editor/nativeCell.tsx b/src/datascience-ui/native-editor/nativeCell.tsx index 19ddede77e01..cda8de9462b0 100644 --- a/src/datascience-ui/native-editor/nativeCell.tsx +++ b/src/datascience-ui/native-editor/nativeCell.tsx @@ -598,6 +598,7 @@ export class NativeCell extends React.Component { this.props.cellVM.cell.data.execution_count === null || this.props.cellVM.hasBeenRun === null || this.props.cellVM.hasBeenRun === false || + this.props.cellVM.cell.state === CellState.executing || this.isError() || this.isMarkdownCell() || !this.props.gatherIsInstalled;