Skip to content

Commit 9875f67

Browse files
authored
chore: add helper descriptions to Auto Away user preference settings (RocketChat#40050)
1 parent eb78ae4 commit 9875f67

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

apps/meteor/client/views/account/preferences/PreferencesUserPresenceSection.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AccordionItem } from '@rocket.chat/fuselage';
2-
import { Field, FieldGroup, FieldLabel, FieldRow, ToggleSwitch, NumberInput } from '@rocket.chat/fuselage-forms';
2+
import { Field, FieldGroup, FieldHint, FieldLabel, FieldRow, ToggleSwitch, NumberInput } from '@rocket.chat/fuselage-forms';
33
import { Controller, useFormContext } from 'react-hook-form';
44
import { useTranslation } from 'react-i18next';
55

@@ -19,6 +19,7 @@ const PreferencesUserPresenceSection = () => {
1919
render={({ field: { value, ...field } }) => <ToggleSwitch {...field} checked={value} />}
2020
/>
2121
</FieldRow>
22+
<FieldHint>{t('Enable_Auto_Away_Description')}</FieldHint>
2223
</Field>
2324
<Field>
2425
<FieldLabel>{t('Idle_Time_Limit')}</FieldLabel>
@@ -29,6 +30,7 @@ const PreferencesUserPresenceSection = () => {
2930
render={({ field: { value, ...field } }) => <NumberInput {...field} value={value} />}
3031
/>
3132
</FieldRow>
33+
<FieldHint>{t('Idle_Time_Limit_Description')}</FieldHint>
3234
</Field>
3335
</FieldGroup>
3436
</AccordionItem>

packages/i18n/src/locales/en.i18n.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1976,6 +1976,7 @@
19761976
"Empty_title": "Empty title",
19771977
"Enable": "Enable",
19781978
"Enable_Auto_Away": "Enable Auto Away",
1979+
"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.",
19791980
"Enable_CSP": "Enable Content-Security-Policy",
19801981
"Enable_CSP_Description": "Do not disable this option unless you have a custom build and are having problems due to inline-scripts",
19811982
"Enable_Desktop_Notifications": "Enable Desktop Notifications",
@@ -2556,7 +2557,7 @@
25562557
"I_Saved_My_Password": "I saved my password",
25572558
"Icon": "Icon",
25582559
"Idle_Time_Limit": "Idle Time Limit",
2559-
"Idle_Time_Limit_Description": "Period of time until status changes to away. Value needs to be in seconds.",
2560+
"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",
25602561
"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.",
25612562
"If_you_didnt_ask_for_reset_ignore_this_email": "If you didn't ask for your password reset, you can ignore this email.",
25622563
"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.",

0 commit comments

Comments
 (0)