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: using window.showMessageBox instead of custom modal #5421

Conversation

axel7083
Copy link
Contributor

@axel7083 axel7083 commented Jan 4, 2024

What does this PR do?

Replace the existing error modal implemented in the ImageAction svelte component by the window.showMessageBox.

  • Improve consistency in application
  • Avoid to maintain individual implementation of error message

Screenshot / video of UI

Before After
image image

What issues does this PR fix or reference?

Fixes #5290 #5420

CC @lstocchi :)

@axel7083 axel7083 requested review from benoitf and a team as code owners January 4, 2024 12:39
@axel7083 axel7083 requested review from dgolovin and lstocchi and removed request for a team January 4, 2024 12:39
Copy link
Contributor

@lstocchi lstocchi left a comment

Choose a reason for hiding this comment

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

LGTM, just one comment

packages/renderer/src/lib/image/ImageActions.svelte Outdated Show resolved Hide resolved
Copy link
Contributor

@lstocchi lstocchi left a comment

Choose a reason for hiding this comment

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

Thanks!! LGTM

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
@axel7083 axel7083 force-pushed the fix/refactor-error-in-favor-of-window-showMessageBox branch from 4184d36 to cf014f8 Compare January 4, 2024 13:59
Copy link
Contributor

@dgolovin dgolovin left a comment

Choose a reason for hiding this comment

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

LGTM

@axel7083 axel7083 merged commit 6b9737c into containers:main Jan 4, 2024
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.7.0 milestone Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants