From 4dd1676e9611c3dcc336f9074b5cfeb65b1a06e1 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Fri, 9 Dec 2022 20:53:36 +0530 Subject: [PATCH] settings_config: Add waiting_period_threshold_dropdown_values. This list will be used in further commits in settings_org.js code for waiting period threshold setting. --- static/js/settings_config.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/static/js/settings_config.ts b/static/js/settings_config.ts index 4121a62501..9e9e323bf5 100644 --- a/static/js/settings_config.ts +++ b/static/js/settings_config.ts @@ -349,6 +349,21 @@ export const time_limit_dropdown_values = [ export const msg_edit_limit_dropdown_values = time_limit_dropdown_values; export const msg_delete_limit_dropdown_values = time_limit_dropdown_values; +export const waiting_period_threshold_dropdown_values = [ + { + description: $t({defaultMessage: "None"}), + code: 0, + }, + { + description: $t({defaultMessage: "3 days"}), + code: 3, + }, + { + description: $t({defaultMessage: "Custom"}), + code: "custom_period", + }, +]; + export const retain_message_forever = -1; export const user_role_values = {