diff --git a/assets/javascripts/wizard/components/suggested-validator.js.es6 b/assets/javascripts/wizard/components/similar-topics-validator.js.es6 similarity index 100% rename from assets/javascripts/wizard/components/suggested-validator.js.es6 rename to assets/javascripts/wizard/components/similar-topics-validator.js.es6 diff --git a/assets/javascripts/wizard/templates/components/suggested-validator.hbs b/assets/javascripts/wizard/templates/components/similar-topics-validator.hbs similarity index 100% rename from assets/javascripts/wizard/templates/components/suggested-validator.hbs rename to assets/javascripts/wizard/templates/components/similar-topics-validator.hbs diff --git a/lib/custom_wizard/realtime_validation.rb b/lib/custom_wizard/realtime_validation.rb index b5df6a9e..72aa5065 100644 --- a/lib/custom_wizard/realtime_validation.rb +++ b/lib/custom_wizard/realtime_validation.rb @@ -1,7 +1,7 @@ class CustomWizard::RealtimeValidation cattr_accessor :types @@types ||= { - similar_topics: { types: [:text], component: "suggested-validator", backend: true, required_params: [] } + similar_topics: { types: [:text], component: "similar-topics-validator", backend: true, required_params: [] } } class SimilarTopic