Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AccordionItem } from '@rocket.chat/fuselage';
import { Field, FieldGroup, FieldLabel, FieldRow, ToggleSwitch, NumberInput } from '@rocket.chat/fuselage-forms';
import { Field, FieldGroup, FieldHint, FieldLabel, FieldRow, ToggleSwitch, NumberInput } from '@rocket.chat/fuselage-forms';
import { Controller, useFormContext } from 'react-hook-form';
import { useTranslation } from 'react-i18next';

Expand All @@ -19,6 +19,7 @@ const PreferencesUserPresenceSection = () => {
render={({ field: { value, ...field } }) => <ToggleSwitch {...field} checked={value} />}
/>
</FieldRow>
<FieldHint>{t('Enable_Auto_Away_Description')}</FieldHint>
</Field>
<Field>
<FieldLabel>{t('Idle_Time_Limit')}</FieldLabel>
Expand All @@ -29,6 +30,7 @@ const PreferencesUserPresenceSection = () => {
render={({ field: { value, ...field } }) => <NumberInput {...field} value={value} />}
/>
</FieldRow>
<FieldHint>{t('Idle_Time_Limit_Description')}</FieldHint>
</Field>
</FieldGroup>
</AccordionItem>
Expand Down
3 changes: 2 additions & 1 deletion packages/i18n/src/locales/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1976,6 +1976,7 @@
"Empty_title": "Empty title",
"Enable": "Enable",
"Enable_Auto_Away": "Enable Auto Away",
"Enable_Auto_Away_Description": "Switches your status to Away after a period of inactivity. Has no effect if status is manually set to Busy or Away.",
"Enable_CSP": "Enable Content-Security-Policy",
"Enable_CSP_Description": "Do not disable this option unless you have a custom build and are having problems due to inline-scripts",
"Enable_Desktop_Notifications": "Enable Desktop Notifications",
Expand Down Expand Up @@ -2559,7 +2560,7 @@
"I_Saved_My_Password": "I saved my password",
"Icon": "Icon",
"Idle_Time_Limit": "Idle Time Limit",
"Idle_Time_Limit_Description": "Period of time until status changes to away. Value needs to be in seconds.",
"Idle_Time_Limit_Description": "Set how long (in seconds) the app waits before marking you as Away when you're not active. Minimum: 60 seconds",
"If_this_email_is_registered": "If this email is registered, we'll send instructions on how to reset your password. If you do not receive an email shortly, please come back and try again.",
"If_you_didnt_ask_for_reset_ignore_this_email": "If you didn't ask for your password reset, you can ignore this email.",
"If_you_didnt_try_to_login_in_your_account_please_ignore_this_email": "If you didn't try to login in your account please ignore this email.",
Expand Down
Loading