Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
leafty committed Jan 13, 2025
1 parent 958012c commit 3a6c82a
Showing 1 changed file with 0 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,70 +245,6 @@ export function SelectResourceClassModal({
/>
</div>
)}

{/* {currentSessionClass && (
<div className={cx("field-group", "mt-3")}>
<div>
Disk Storage:{" "}
<span className="fw-bold">
{currentDiskStorage ? (
<>{currentDiskStorage} GB</>
) : (
<>{currentSessionClass?.default_storage} GB (default)</>
)}
</span>
</div>
<div className={cx("form-check", "form-switch")}>
<Input
type="checkbox"
role="switch"
id="configure-disk-storage"
checked={currentDiskStorage != null}
onChange={toggleDiskStorage}
/>
<Label for="configure-disk-storage">Configure disk storage</Label>
</div>
{currentDiskStorage != null && (
<>
<InputGroup
className={cx(
currentDiskStorage > currentSessionClass.max_storage &&
"is-invalid"
)}
>
<Input
className={cx(
currentDiskStorage > currentSessionClass.max_storage &&
"is-invalid"
)}
type="number"
min={MIN_SESSION_STORAGE_GB}
max={currentSessionClass?.max_storage}
step={STEP_SESSION_STORAGE_GB}
value={currentDiskStorage}
onChange={(event) => {
onChangeDiskStorage(event.target.valueAsNumber);
}}
/>
<InputGroupText id="configure-disk-storage-addon">
GB
</InputGroupText>
<UncontrolledTooltip target="configure-disk-storage-addon">
Gigabytes
</UncontrolledTooltip>
</InputGroup>
<FormText>
Default: {currentSessionClass?.default_storage} GB, max:{" "}
{currentSessionClass?.max_storage} GB
</FormText>
<div className="invalid-feedback">
Selected disk storage exceeds maximum allowed value (
{currentSessionClass.max_storage} GB).
</div>
</>
)}
</div>
)} */}
</ModalBody>
<ModalFooter className="gap-2">
<Link
Expand Down

0 comments on commit 3a6c82a

Please sign in to comment.