Skip to content

Commit 4cd5df9

Browse files
author
David Kutugata
authored
hide the gather button while a cell is executing (#12981)
1 parent ad0b16e commit 4cd5df9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/datascience-ui/history-react/interactiveCell.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ export class InteractiveCell extends React.Component<IInteractiveCellProps> {
189189
onClick={gatherCode}
190190
hidden={
191191
this.props.cellVM.cell.state === CellState.error ||
192+
this.props.cellVM.cell.state === CellState.executing ||
192193
this.props.cellVM.cell.data.cell_type === 'markdown' ||
193194
!this.props.settings.gatherIsInstalled
194195
}

src/datascience-ui/native-editor/nativeCell.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ export class NativeCell extends React.Component<INativeCellProps> {
598598
this.props.cellVM.cell.data.execution_count === null ||
599599
this.props.cellVM.hasBeenRun === null ||
600600
this.props.cellVM.hasBeenRun === false ||
601+
this.props.cellVM.cell.state === CellState.executing ||
601602
this.isError() ||
602603
this.isMarkdownCell() ||
603604
!this.props.gatherIsInstalled;

0 commit comments

Comments
 (0)