Skip to content

Commit 4f8a554

Browse files
authored
Make interactive window buttons consistent with notebook editor (microsoft#12122)
* Make IW buttons consistent with notebook editor * Add news
1 parent a4415fa commit 4f8a554

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

news/2 Fixes/11091.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Switch order of restart and cancel buttons in interactive window to be consistent with ordering in notebook toolbar.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,26 +135,26 @@ ${buildSettingsCss(this.props.settings)}`}</style>
135135
</ImageButton>
136136
<ImageButton
137137
baseTheme={this.props.baseTheme}
138-
onClick={this.props.interruptKernel}
138+
onClick={this.props.restartKernel}
139139
disabled={this.props.busy}
140-
tooltip={getLocString('DataScience.interruptKernel', 'Interrupt IPython kernel')}
140+
tooltip={getLocString('DataScience.restartServer', 'Restart IPython kernel')}
141141
>
142142
<Image
143143
baseTheme={this.props.baseTheme}
144144
class="image-button-image"
145-
image={ImageName.Interrupt}
145+
image={ImageName.Restart}
146146
/>
147147
</ImageButton>
148148
<ImageButton
149149
baseTheme={this.props.baseTheme}
150-
onClick={this.props.restartKernel}
150+
onClick={this.props.interruptKernel}
151151
disabled={this.props.busy}
152-
tooltip={getLocString('DataScience.restartServer', 'Restart IPython kernel')}
152+
tooltip={getLocString('DataScience.interruptKernel', 'Interrupt IPython kernel')}
153153
>
154154
<Image
155155
baseTheme={this.props.baseTheme}
156156
class="image-button-image"
157-
image={ImageName.Restart}
157+
image={ImageName.Interrupt}
158158
/>
159159
</ImageButton>
160160
<ImageButton

0 commit comments

Comments
 (0)