Skip to content

Commit

Permalink
fix(ui): fix switch buttons to show up properly and make them default…
Browse files Browse the repository at this point in the history
… checkbox type #1805
  • Loading branch information
Reloflex authored and Nicolas Burger committed Aug 30, 2022
1 parent fcc924f commit e004a52
Show file tree
Hide file tree
Showing 20 changed files with 341 additions and 220 deletions.
1 change: 0 additions & 1 deletion src/client/Engine/Caching.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const Caching = ({ onChange, caching }) => (
defaultValue
help={<div>Move to archive folder or delete files when they are sent</div>}
onChange={onChange}
switchButton
/>
</Col>
</Row>
Expand Down
2 changes: 0 additions & 2 deletions src/client/Engine/HealthSignal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const HealthSignal = ({ onChange, healthSignal }) => (
value={healthSignal.logging.enabled}
defaultValue={false}
onChange={onChange}
switchButton
/>
</Col>
</Row>
Expand Down Expand Up @@ -62,7 +61,6 @@ const HealthSignal = ({ onChange, healthSignal }) => (
value={healthSignal.http.enabled}
defaultValue={false}
onChange={onChange}
switchButton
/>
</Col>
</Row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ exports[`FileLogging check FileLogging 1`] = `
class="col-md-3"
>
<div
class="mb-3 mb-3"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
Expand Down Expand Up @@ -369,7 +369,7 @@ exports[`FileLogging check change file level to "warning" 1`] = `
class="col-md-3"
>
<div
class="mb-3 mb-3"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
Expand Down Expand Up @@ -564,7 +564,7 @@ exports[`FileLogging check change file name to "new_filename" 1`] = `
class="col-md-3"
>
<div
class="mb-3 mb-3"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
Expand Down Expand Up @@ -759,7 +759,7 @@ exports[`FileLogging check change fileLog maxSize 1000 1`] = `
class="col-md-3"
>
<div
class="mb-3 mb-3"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
Expand Down Expand Up @@ -954,7 +954,7 @@ exports[`FileLogging check change fileLog numberOfFiles to 1 1`] = `
class="col-md-3"
>
<div
class="mb-3 mb-3"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
Expand Down Expand Up @@ -1149,7 +1149,7 @@ exports[`FileLogging check change fileLog tailable to false 1`] = `
class="col-md-3"
>
<div
class="mb-3 mb-3"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ exports[`Logging check Logging 1`] = `
class="col-md-3"
>
<div
class="mb-3 mb-3"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
Expand Down
44 changes: 28 additions & 16 deletions src/client/Engine/__snapshots__/Caching.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,17 @@ exports[`Caching check Caching 1`] = `
class="col-md-2"
>
<div
class="form-check form-switch"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
>
Archive mode activated
</label>
<input
checked=""
class="mb-3 form-check-input"
color="secondary"
class="oi-form-input checkbox form-check-input"
id="engine.caching.archive.enabled"
label="Archive mode activated"
name="engine.caching.archive.enabled"
type="checkbox"
/>
Expand Down Expand Up @@ -426,14 +429,17 @@ exports[`Caching check change archiveFolder 1`] = `
class="col-md-2"
>
<div
class="form-check form-switch"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
>
Archive mode activated
</label>
<input
checked=""
class="mb-3 form-check-input"
color="secondary"
class="oi-form-input checkbox form-check-input"
id="engine.caching.archive.enabled"
label="Archive mode activated"
name="engine.caching.archive.enabled"
type="checkbox"
/>
Expand Down Expand Up @@ -685,14 +691,17 @@ exports[`Caching check change archiveMode to "archive" 1`] = `
class="col-md-2"
>
<div
class="form-check form-switch"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
>
Archive mode activated
</label>
<input
checked=""
class="mb-3 form-check-input"
color="secondary"
class="oi-form-input checkbox form-check-input"
id="engine.caching.archive.enabled"
label="Archive mode activated"
name="engine.caching.archive.enabled"
type="checkbox"
/>
Expand Down Expand Up @@ -944,14 +953,17 @@ exports[`Caching check change cacheFolder 1`] = `
class="col-md-2"
>
<div
class="form-check form-switch"
class="mb-3 form-check form-switch"
>
<label
class="form-check-label"
>
Archive mode activated
</label>
<input
checked=""
class="mb-3 form-check-input"
color="secondary"
class="oi-form-input checkbox form-check-input"
id="engine.caching.archive.enabled"
label="Archive mode activated"
name="engine.caching.archive.enabled"
type="checkbox"
/>
Expand Down
Loading

0 comments on commit e004a52

Please sign in to comment.