Commit e1abbe6
authored
fix(sagemaker): Disable start/stop button for intermediate state of the space (aws#8282)
## Problem
- Users could click start/stop buttons on SageMaker spaces while they
were already in the process of starting or stopping.
## Solution
- Disables start/stop buttons when SageMaker space is in STARTING or
STOPPING state to prevent invalid operations during state transitions.
- Added pending state check in getContext() method
- Returns specific context values for pending states
(smusSpacePendingNode/awsSagemakerSpacePendingNode) in package.json
[openRemoteConnection]
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.1 parent 7a03794 commit e1abbe6
File tree
2 files changed
+7
-3
lines changed- packages
- core/src/awsService/sagemaker
- toolkit
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
199 | 203 | | |
200 | 204 | | |
201 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1514 | 1514 | | |
1515 | 1515 | | |
1516 | 1516 | | |
1517 | | - | |
| 1517 | + | |
1518 | 1518 | | |
1519 | 1519 | | |
1520 | 1520 | | |
1521 | 1521 | | |
1522 | | - | |
| 1522 | + | |
1523 | 1523 | | |
1524 | 1524 | | |
1525 | 1525 | | |
| |||
0 commit comments