Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Dashboard doesn’t store state of buttons #2584

Merged
merged 7 commits into from May 25, 2023

Conversation

jeffmaury
Copy link
Contributor

@jeffmaury jeffmaury commented May 22, 2023

Fixes #2403

What does this PR do?

Keep initialization state if navigation is done

Screenshot/screencast of this PR

init

What issues does this PR fix or reference?

Fixes #2403

How to test this PR?

  1. Removed all Podman machine
  2. Go to the dashboard
  3. Click the Initialize or Initialize and Run button
  4. Navigate to Settings
  5. Go back to Dashboard

@jeffmaury jeffmaury marked this pull request as ready for review May 22, 2023 15:25
@jeffmaury jeffmaury requested review from a team and benoitf as code owners May 22, 2023 15:25
@jeffmaury jeffmaury requested review from cdrage and removed request for a team May 22, 2023 15:25
Comment on lines 18 to 20
$: providersInstalled = $providerInfos.filter(
provider => provider.status === 'installed' || provider.status === 'configuring',
);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks strange that installed providers are also the one being in configuring state
maybe they need their own variables ? like providersConfiguring ?

Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks like a hack/patch for now

ProviderInstalled.svelte is checking for a 'configuring' state , providerInstalled is assuming it's configuring state

I suppose it requires its own Component / variables

Fixes containers#2403

Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
Signed-off-by: Jeff MAURY <jmaury@redhat.com>
@jeffmaury jeffmaury requested a review from benoitf May 24, 2023 13:05
@jeffmaury jeffmaury merged commit d909abf into containers:main May 25, 2023
7 checks passed
@jeffmaury jeffmaury deleted the GH-2403 branch May 25, 2023 16:11
@podman-desktop-bot podman-desktop-bot added this to the 1.1.0 milestone May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dashboard doesn’t store state of buttons
3 participants