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 mod disable/uninstall status indicator #1182

Merged
merged 4 commits into from
Jan 25, 2024

Conversation

MythicManiac
Copy link
Collaborator

The recently added status indicator for mod uninstall / disable progress was not working as intended after other changes were merged in. This PR improves the modal layouts to better accommodate the status indicator and in general deal with overflow better.

Demo:

demo.mp4

Disable the buttons in the DisableModModal.vue when actions are being
performed.
The mod management actions modal was overflowing over the screen when
large amounts of content was present.

Fix this issue by creating a ModalCard component which uses the
bulma-provided modal-card CSS classes which appropriately restrict the
overflow to take place only in the card body.

Replace AssociatedModsModal, UninstallModModal, and DisableModModal's
use of Modal with ModalCard, meaning these actions should no longer
overflow off-screen.
Move the UI state resetting of mod disabling actions to a `finally`
clause in the try/catch block as to ensure it's properly reset even if
unexpected errors occur. A failure to reset the state properly will mean
the UI gets stuck.
The uninstall/disable progress status indicator is overflowing outside
of the modal and mostly not visible. This commit moves it to the modal
body in such a way that it's always visible when intended.
Copy link
Collaborator

@anttimaki anttimaki left a comment

Choose a reason for hiding this comment

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

LGTM

@MythicManiac MythicManiac merged commit a98ddc8 into ebkr:develop Jan 25, 2024
1 check passed
@MythicManiac MythicManiac deleted the mod-modals-status branch January 25, 2024 07:40
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.

2 participants