mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-24 10:18:53 +00:00
fix: initial action state in details pages
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>
This commit is contained in:
parent
6932b3ec8e
commit
aedf757892
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue