Regression: Reset section button (#18007)

Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat>
pull/18043/head
Martin Schoeler 6 years ago committed by GitHub
parent dbe4d17a05
commit ef47ef605b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      client/admin/settings/Section.js
  2. 2
      packages/rocketchat-i18n/i18n/en.i18n.json

@ -58,16 +58,16 @@ export function Section({ children, groupId, hasReset = true, help, sectionName,
<FieldGroup>
{editableSettings.map((setting) => <Setting key={setting._id} settingId={setting._id} sectionChanged={changed} />)}
{hasReset && canReset && <Button
children={t('Reset_section_settings')}
danger
data-section={sectionName}
ghost
onClick={handleResetSectionClick}
/>}
{children}
</FieldGroup>
{hasReset && canReset && <Button
children={t('Reset_section_settings')}
danger
marginBlockStart={'x16'}
data-section={sectionName}
onClick={handleResetSectionClick}
/>}
</Accordion.Item>;
}

@ -2962,7 +2962,7 @@
"Reset": "Reset",
"Reset_E2E_Key": "Reset E2E Key",
"Reset_password": "Reset password",
"Reset_section_settings": "Reset Section Settings",
"Reset_section_settings": "Reset Section to Default",
"Reset_Connection": "Reset Connection",
"Responding": "Responding",
"Response_description_pre": "If the handler wishes to post a response back into the channel, the following JSON should be returned as the body of the response:",

Loading…
Cancel
Save