Skip to content

Commit

Permalink
feat: Add help text for reserving static IPs to IP mode fields MAASEN…
Browse files Browse the repository at this point in the history
…G-3911 (#5550)

- Added help text about reserving IP addresses to the IP mode field in:
  - Add device
  - Add network discovery
  - Add/Edit device interface
  - Add/Edit machine interface

Resolves [MAASENG-3911](https://warthogs.atlassian.net/browse/MAASENG-3911)
  • Loading branch information
ndv99 authored Oct 24, 2024
1 parent ed3cdb9 commit ec3e045
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ export const IpAssignmentSelect = ({
return (
<FormikField
component={Select}
help={
import.meta.env.VITE_APP_STATIC_IPS_ENABLED === "true"
? "To manage static DHCP leases for a device, go to the address reservation tab of a subnet."
: null
}
label={label}
options={[
{ label: Labels.DefaultOption, value: "", disabled: true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ const NetworkFields = ({
{values.subnet ? (
<LinkModeSelect
defaultOption={null}
help={
import.meta.env.VITE_APP_STATIC_IPS_ENABLED === "true"
? "To manage static DHCP leases for a machine, go to the address reservation tab of a subnet."
: null
}
interfaceType={interfaceType}
name="mode"
onChange={(evt: React.ChangeEvent<HTMLInputElement>) => {
Expand Down

0 comments on commit ec3e045

Please sign in to comment.