Skip to content

Commit

Permalink
fix: initial action state in details pages
Browse files Browse the repository at this point in the history
While testing issue #3529 I noticed that when you're in the pod or container
details page, all actions change the state to STARTING regardless of what the
action says the state should be changed to. If you were actually deleting the
object this means there's often a little blip where it looks like it's trying
to start before the state is corrected.

Fixed, now matches the correct/identical code that's in the corresponding
*List pages.

Signed-off-by: Tim deBoer <git@tdeboer.ca>
  • Loading branch information
deboer-tim committed Sep 19, 2023
1 parent 6932b3e commit aedf757
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ onMount(() => {
function inProgressCallback(inProgress: boolean, state: string | undefined): void {
container.actionInProgress = inProgress;
if (state && inProgress) {
container.state = 'STARTING';
container.state = state;
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/src/lib/pod/PodDetails.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ onMount(() => {
function inProgressCallback(inProgress: boolean, state: string | undefined): void {
pod.actionInProgress = inProgress;
if (state && inProgress) {
pod.status = 'STARTING';
pod.status = state;
}
}
Expand Down

0 comments on commit aedf757

Please sign in to comment.