diff --git a/assets/javascripts/discourse/templates/components/wizard-realtime-validations.hbs b/assets/javascripts/discourse/templates/components/wizard-realtime-validations.hbs index 4544f28a..39734761 100644 --- a/assets/javascripts/discourse/templates/components/wizard-realtime-validations.hbs +++ b/assets/javascripts/discourse/templates/components/wizard-realtime-validations.hbs @@ -22,7 +22,7 @@
- +
{{input type="number" class="time-n-value" value=props.time_n_value}} diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 9e008b94..47b2aa5b 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -184,7 +184,7 @@ en: above: "Above" below: "Below" categories: "Categories" - time_after: "Time After" + max_topic_age: "Max Topic Age" time_units: days: "Days" weeks: "Weeks" diff --git a/spec/components/custom_wizard/realtime_validations/similar_topics_spec.rb b/spec/components/custom_wizard/realtime_validations/similar_topics_spec.rb index 94b17b63..7d871d45 100644 --- a/spec/components/custom_wizard/realtime_validations/similar_topics_spec.rb +++ b/spec/components/custom_wizard/realtime_validations/similar_topics_spec.rb @@ -30,7 +30,7 @@ describe ::CustomWizard::RealtimeValidation::SimilarTopics do expect(result.items.length).to eq(1) end - it "filters topics based on Time After setting" do + it "filters topics based on Max Topic Age setting" do topic.update!(created_at: 23.hours.ago) cat_topic.update!(created_at: 2.days.ago)