diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-03-12 05:25:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 05:25:50 +0100 |
commit | 1b02d29be598d71c690bfe04e45e44775384e1dd (patch) | |
tree | aee9e218e38690f5f83bf22b6299045d38c4c044 /app/views/filters | |
parent | 5cc45d22d3c5c326917d1a02a09f2afae83d4332 (diff) |
Fix not being able to change world filter expiration back to “Never” (#15858)
Fixes #15849
Diffstat (limited to 'app/views/filters')
-rw-r--r-- | app/views/filters/_fields.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/filters/_fields.html.haml b/app/views/filters/_fields.html.haml index fb94a07fc..84dcdcca5 100644 --- a/app/views/filters/_fields.html.haml +++ b/app/views/filters/_fields.html.haml @@ -2,7 +2,7 @@ .fields-row__column.fields-row__column-6.fields-group = f.input :phrase, as: :string, wrapper: :with_label, hint: false .fields-row__column.fields-row__column-6.fields-group - = f.input :expires_in, wrapper: :with_label, collection: [30.minutes, 1.hour, 6.hours, 12.hours, 1.day, 1.week].map(&:to_i), label_method: lambda { |i| I18n.t("invites.expires_in.#{i}") }, prompt: I18n.t('invites.expires_in_prompt') + = f.input :expires_in, wrapper: :with_label, collection: [30.minutes, 1.hour, 6.hours, 12.hours, 1.day, 1.week].map(&:to_i), label_method: lambda { |i| I18n.t("invites.expires_in.#{i}") }, include_blank: I18n.t('invites.expires_in_prompt') .fields-group = f.input :context, wrapper: :with_block_label, collection: CustomFilter::VALID_CONTEXTS, as: :check_boxes, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li', label_method: lambda { |context| I18n.t("filters.contexts.#{context}") }, include_blank: false |