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: check for icon file referenced by preset.icon #782

Merged
merged 12 commits into from
Aug 29, 2024

Conversation

tomasciccola
Copy link
Contributor

@tomasciccola tomasciccola commented Aug 27, 2024

should close #773
If you import a config where there's a preset with a field icon: 'someIconName', we now check that there's a matching file in icons/someIconName-*, if not, we throw (but we can instead add a warning)

@tomasciccola tomasciccola marked this pull request as ready for review August 27, 2024 18:38
@tomasciccola tomasciccola requested a review from EvanHahn August 27, 2024 18:38
src/config-import.js Outdated Show resolved Hide resolved
src/config-import.js Outdated Show resolved Hide resolved
@tomasciccola tomasciccola requested a review from EvanHahn August 28, 2024 17:37
src/config-import.js Outdated Show resolved Hide resolved
src/config-import.js Outdated Show resolved Hide resolved
src/config-import.js Show resolved Hide resolved
src/config-import.js Outdated Show resolved Hide resolved
@tomasciccola tomasciccola requested a review from EvanHahn August 28, 2024 18:48
Copy link
Contributor

@EvanHahn EvanHahn left a comment

Choose a reason for hiding this comment

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

Thanks for all the back-and-forth!

@tomasciccola tomasciccola merged commit 56dd677 into main Aug 29, 2024
7 checks passed
@tomasciccola tomasciccola deleted the fix/checkForMissingIconNameInConfigImport branch August 29, 2024 13:52
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.

Importing a config with a missing icon should fail
2 participants