0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 04:12:53 +01:00

renamed setting's copy to Max Topic Age

Dieser Commit ist enthalten in:
Faizaan Gagan 2021-02-25 17:10:02 +05:30
Ursprung bc2cc85804
Commit 6754d744f0
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -22,7 +22,7 @@
</div> </div>
<div class="validation-section"> <div class="validation-section">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n 'admin.wizard.field.validations.time_after'}}</label> <label>{{i18n 'admin.wizard.field.validations.max_topic_age'}}</label>
</div> </div>
<div class="setting-value"> <div class="setting-value">
{{input type="number" class="time-n-value" value=props.time_n_value}} {{input type="number" class="time-n-value" value=props.time_n_value}}

Datei anzeigen

@ -184,7 +184,7 @@ en:
above: "Above" above: "Above"
below: "Below" below: "Below"
categories: "Categories" categories: "Categories"
time_after: "Time After" max_topic_age: "Max Topic Age"
time_units: time_units:
days: "Days" days: "Days"
weeks: "Weeks" weeks: "Weeks"

Datei anzeigen

@ -30,7 +30,7 @@ describe ::CustomWizard::RealtimeValidation::SimilarTopics do
expect(result.items.length).to eq(1) expect(result.items.length).to eq(1)
end 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) topic.update!(created_at: 23.hours.ago)
cat_topic.update!(created_at: 2.days.ago) cat_topic.update!(created_at: 2.days.ago)