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(web): validation when editing asset date & time #7160

Merged
merged 1 commit into from Feb 17, 2024

Conversation

michelheusschen
Copy link
Contributor

When editing the date & time of an asset, the Confirm button becomes disabled when clicked and the entered date is invalid. However, the button never gets re-enabled so you have to cancel and try again.

Fixed by validating upon user input rather than on submit. Also removed a custom type definition for Intl.supportedValuesOf by using SvelteKit's default tsconfig.json settings, replacing our "lib": ["es2020", "DOM"].

Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7831444
Status: ✅  Deploy successful!
Preview URL: https://d689fff0.immich.pages.dev
Branch Preview URL: https://fix-web-edit-asset-date-vali.immich.pages.dev

View logs

@jrasm91 jrasm91 merged commit 60ba37b into main Feb 17, 2024
26 checks passed
@jrasm91 jrasm91 deleted the fix/web-edit-asset-date-validation branch February 17, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants