Skip to content

Submit forms with fetch with translations#137

Merged
royduin merged 9 commits intomasterfrom
feature/forms-ajax-translations
May 21, 2025
Merged

Submit forms with fetch with translations#137
royduin merged 9 commits intomasterfrom
feature/forms-ajax-translations

Conversation

@BobWez98
Copy link
Copy Markdown
Member

@BobWez98 BobWez98 commented May 2, 2025

This another take on #136 however this is completely dependent on this new functionality: rapidez/core#836

This has my preference over #136

Comment thread resources/js/components/FormConditions.vue Outdated
Comment thread resources/js/components/FormConditions.vue Outdated
BobWez98 and others added 2 commits May 2, 2025 13:13
Co-authored-by: Jade Geels <a@jgw.tf>
Co-authored-by: Jade Geels <a@jgw.tf>
}
} else {
this.error = true
Notify(window.config.translations.packages.statamic.form.error, 'error')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@BobWez98
Copy link
Copy Markdown
Member Author

Added the discussed solution now. @royduin

@BobWez98 BobWez98 marked this pull request as ready for review May 20, 2025 13:16
}
} else {
this.error = true
Notify(window.config.statamic.translations.form.error, 'success')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Success? Shouldn't that be error or warning?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

😳 fixed!

@royduin royduin requested review from Jade-GG and indykoning May 20, 2025 14:55
@royduin royduin merged commit 7313e6e into master May 21, 2025
@royduin royduin deleted the feature/forms-ajax-translations branch May 21, 2025 12:20
@royduin royduin mentioned this pull request May 21, 2025
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.

4 participants