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

Make LocalModCard more self-sustained #1249

Merged
merged 6 commits into from
Mar 28, 2024
Merged

Make LocalModCard more self-sustained #1249

merged 6 commits into from
Mar 28, 2024

Conversation

anttimaki
Copy link
Collaborator

No description provided.

The implementation imitates what's currently being done by
LocalModList.performEnable(). Execption is that the new implementation
supports similar "progress indicator" as the disabling method does,
even though it's not currently used since mods are never enabled via
modal where the progress could be shown, even if multiple mods are
enabled at once.

This helps remove business logic and direct references to providers
from components, hopefully supporting reuse and easier refactoring.
- I'm not sure if this is the proper way to test components that rely
  on state stored in Vuex, but it's the first of many ways I tried that
  worked
- Tests need to await $nextTick() so the async created() method is done
  before the test cases continue
Base automatically changed from associated-mods-modal to develop March 28, 2024 08:14
@anttimaki anttimaki merged commit ebd872a into develop Mar 28, 2024
7 checks passed
@anttimaki anttimaki deleted the local-mod-card branch March 28, 2024 08:15
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.

1 participant