Skip to content

Commit

Permalink
fix(xo-web/XOSTOR): move 'ignore file sytems' outside of advanced set…
Browse files Browse the repository at this point in the history
…tings (#7429)

Move the toggle outside of advanced settings as its use is very common.
  • Loading branch information
MathieuRA committed Mar 4, 2024
1 parent c8778fe commit 54f9be5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- [Jobs] Fix `t.value is undefined` when saving a new job (broken in XO 5.91)
- [XOSTOR] Move `ignore file sytems` outside of advanced settings (PR [#7429](https://github.com/vatesfr/xen-orchestra/pull/7429))

### Packages to release

Expand Down
20 changes: 10 additions & 10 deletions packages/xo-web/src/xo-app/xostor/new-xostor-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ const SettingsCard = decorate([
<Card>
<CardHeader>
{_('settings')}
<ActionButton
{/* Uncomment when some advanced settings need to be added */}
{/* <ActionButton
className='pull-right'
data-mode='_displayAdvancedSettings'
handler={effects.toggleDisplayAdvancedSettings}
Expand All @@ -120,7 +121,7 @@ const SettingsCard = decorate([
size='small'
>
{_('advancedSettings')}
</ActionButton>
</ActionButton> */}
</CardHeader>
<CardBlock>
<Row>
Expand All @@ -140,14 +141,13 @@ const SettingsCard = decorate([
<Select onChange={effects.onProvisioningChange} options={PROVISIONING_OPTIONS} value={state.provisioning} />
</Col>
</Row>
{state.displayAdvancedSettings && (
<Row>
<Col style={SPACE_BETWEEN}>
<label>{_('ignoreFileSystems')}</label>
<Toggle value={state.ignoreFileSystems} onChange={effects.onIgnoreFileSystemsChange} size='small' />
</Col>
</Row>
)}
<Row className='form-group mt-1'>
<Col style={SPACE_BETWEEN}>
<label>{_('ignoreFileSystems')}</label>
<Toggle value={state.ignoreFileSystems} onChange={effects.onIgnoreFileSystemsChange} size='small' />
</Col>
</Row>
{/* {state.displayAdvancedSettings && ( Advanced settings section )} */}
</CardBlock>
</Card>
),
Expand Down

0 comments on commit 54f9be5

Please sign in to comment.