Skip to content

Commit

Permalink
Regression: Reset section button (RocketChat#18007)
Browse files Browse the repository at this point in the history
Co-authored-by: Tasso Evangelista <[email protected]>
  • Loading branch information
MartinSchoeler and tassoevan authored Jun 25, 2020
1 parent dbe4d17 commit ef47ef6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions client/admin/settings/Section.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-i18n/i18n/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:",
Expand Down

0 comments on commit ef47ef6

Please sign in to comment.