~arx10/procustodibus-app

da2da4071b84cc9caf14c77c7b254b0a0470ff5c — Justin Ludwig 27 days ago ca55efe
fix 'interface does not appear to be a hub' types
1 files changed, 6 insertions(+), 3 deletions(-)

M src/mixins/host/use-host-bulk-download.js
M src/mixins/host/use-host-bulk-download.js => src/mixins/host/use-host-bulk-download.js +6 -3
@@ 342,9 342,12 @@ async function validateHubInterface(

  const hubTypes = ['hub-and-spoke', 'internet-to-point', 'site-to-point']
  if (!hubTypes.includes(endpoint.wizard)) {
    errors.push(
      'Type: either Hub (in Hub-and-Spoke), Internet (in Point-to-Internet), or Site (in Point-to-Site)',
    )
    const types = [
      'Hub-and-Spoke, Remote as Spoke',
      'Point-to-Site, Remote as Point',
      'or Point-to-Internet, Remote as Point',
    ]
    errors.push(`Type: either ${types.join('; ')}`)
  }

  if (!endpoint.allowed_ips || !endpoint.allowed_ips.length) {