All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.325e2d4b-1304.500f438fa9a7cd88e885.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"file":"325e2d4b-1304.500f438fa9a7cd88e885.js","mappings":"wVA6BA,MAAMA,EAA+B,IAAgB,IAAf,OAAEC,GAAa,EACnD,MAAOC,EAAeC,IAAoBC,EAAAA,EAAAA,UAAwB,OAC3DC,EAAuBC,IAA4BF,EAAAA,EAAAA,UAAwC,OAElGG,EAAAA,EAAAA,YAAU,KACqB,MAC3B,MAAM,gBAAEC,GAAoBP,EAE5BQ,EAAAA,EAAAA,iBAAgDD,GAAiBE,MAC9DC,IACCR,EAAiBQ,GAEjBF,EAAAA,EAAAA,yBAAwDD,GACrDE,MAAME,GAA2BN,EAAyBM,IAD7D,IAGDC,IACsB,MAAjBA,EAAMC,QACRC,EAAAA,EAAAA,KAAaC,EAAAA,GAAAA,OAAAA,SAAAA,cACd,GAVL,EAeFC,EAAsB,GACrB,CAAChB,IAMJ,OAHUC,GAAkBG,EAQ1B,gBAAC,KAAD,CAAea,MAAM,2BACnB,gBAAC,IAAD,MACA,gBAAC,KAAD,CAAYA,MAAM,0BACNC,kBAAmB,CACjBD,MAAO,wBACPE,KAAMC,EAAAA,EAAAA,MAAAA,oBAElB,2EAIF,gBAAC,IAAD,CAAmBnB,cAAeA,EACfG,sBAAuBA,KAhBrC,gBAAC,KAAD,KAGT,EAkBFL,EAA6BsB,UAAY,CACvCrB,OAAQsB,IAAAA,OAAAA,YAGV,SAAeC,EAAAA,EAAAA,GAAWxB,E","sources":["webpack://graylog-web-interface/./src/pages/SidecarEditConfigurationPage.tsx"],"sourcesContent":["/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport PropTypes from 'prop-types';\nimport React, { useState, useEffect } from 'react';\n\nimport history from 'util/History';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport Routes from 'routing/Routes';\nimport ConfigurationForm from 'components/sidecars/configuration-forms/ConfigurationForm';\nimport withParams from 'routing/withParams';\nimport { CollectorConfigurationsActions } from 'stores/sidecars/CollectorConfigurationsStore';\nimport type { Configuration, ConfigurationSidecarsResponse } from 'components/sidecars/types';\nimport SidecarsPageNavigation from 'components/sidecars/common/SidecarsPageNavigation';\nimport DocsHelper from 'util/DocsHelper';\n\nconst SidecarEditConfigurationPage = ({ params }) => {\n  const [configuration, setConfiguration] = useState(null);\n  const [configurationSidecars, setConfigurationSidecars] = useState(null);\n\n  useEffect(() => {\n    const _reloadConfiguration = () => {\n      const { configurationId } = params;\n\n      CollectorConfigurationsActions.getConfiguration(configurationId).then(\n        (_configuration) => {\n          setConfiguration(_configuration);\n\n          CollectorConfigurationsActions.getConfigurationSidecars(configurationId)\n            .then((_configurationSidecars) => setConfigurationSidecars(_configurationSidecars));\n        },\n        (error) => {\n          if (error.status === 404) {\n            history.push(Routes.SYSTEM.SIDECARS.CONFIGURATION);\n          }\n        },\n      );\n    };\n\n    _reloadConfiguration();\n  }, [params]);\n\n  const _isLoading = () => {\n    return !configuration || !configurationSidecars;\n  };\n\n  if (_isLoading()) {\n    return ;\n  }\n\n  return (\n    \n      \n      \n        \n          Some words about collector configurations.\n        \n      \n      \n    \n  );\n};\n\nSidecarEditConfigurationPage.propTypes = {\n  params: PropTypes.object.isRequired,\n};\n\nexport default withParams(SidecarEditConfigurationPage);\n"],"names":["SidecarEditConfigurationPage","params","configuration","setConfiguration","useState","configurationSidecars","setConfigurationSidecars","useEffect","configurationId","CollectorConfigurationsActions","then","_configuration","_configurationSidecars","error","status","history","Routes","_reloadConfiguration","title","documentationLink","path","DocsHelper","propTypes","PropTypes","withParams"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy