-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactors feedback form. #770
Conversation
closes #766
end | ||
|
||
protected | ||
|
||
def validate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This validation is now client-side.
@@ -1,5 +1,4 @@ | |||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails | |||
import "controllers" | |||
import 'bootstrap'; | |||
import 'feedback_form'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goodbye.
export default class extends Controller { | ||
static targets = ['form'] | ||
|
||
connect() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only remaining JS that is necessary.
@@ -1 +1,53 @@ | |||
<%= render 'shared/feedback_forms/form' %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merged the many feedback form partials.
@@ -1,7 +1,6 @@ | |||
# Pin npm packages by running ./bin/importmap | |||
|
|||
pin "application", preload: true | |||
pin "jquery", to: "https://ga.jspm.io/npm:[email protected]/dist/jquery.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goodbye.
@amyehodge approved. |
closes #766